diff --git a/crates/radicle-cli/src/commands/inbox.rs b/crates/radicle-cli/src/commands/inbox.rs index 63540bc9..137a28f4 100644 --- a/crates/radicle-cli/src/commands/inbox.rs +++ b/crates/radicle-cli/src/commands/inbox.rs @@ -127,7 +127,7 @@ fn list_all<'a>( storage, profile, )?; - vstacks.extend(vstack.into_iter()); + vstacks.extend(vstack); } Ok(vstacks) } diff --git a/crates/radicle-node/src/tests.rs b/crates/radicle-node/src/tests.rs index f9a9fac3..f7894cb8 100644 --- a/crates/radicle-node/src/tests.rs +++ b/crates/radicle-node/src/tests.rs @@ -1289,7 +1289,7 @@ fn test_persistent_peer_reconnect_success() { #[test] fn test_maintain_connections() { // Peers alice starts out connected to. - let connected = vec![ + let connected = [ Peer::new("connected", [8, 8, 8, 1]), Peer::new("connected", [8, 8, 8, 2]), Peer::new("connected", [8, 8, 8, 3]), @@ -1338,7 +1338,7 @@ fn test_maintain_connections() { #[test] fn test_maintain_connections_transient() { // Peers alice starts out connected to. - let connected = vec![ + let connected = [ Peer::new("connected", [8, 8, 8, 1]), Peer::new("connected", [8, 8, 8, 2]), Peer::new("connected", [8, 8, 8, 3]), diff --git a/crates/radicle/src/cob/cache.rs b/crates/radicle/src/cob/cache.rs index 81aa6834..cbcb3c3e 100644 --- a/crates/radicle/src/cob/cache.rs +++ b/crates/radicle/src/cob/cache.rs @@ -290,7 +290,7 @@ fn bump(db: &sql::Connection) -> Result { db.execute(format!("PRAGMA user_version = {new}"))?; - Ok(new as usize) + Ok(new) } /// Update a COB object in the cache. diff --git a/crates/radicle/src/cob/store.rs b/crates/radicle/src/cob/store.rs index 57b78da0..41b5941f 100644 --- a/crates/radicle/src/cob/store.rs +++ b/crates/radicle/src/cob/store.rs @@ -85,7 +85,7 @@ pub trait Cob: Sized { }; let mut state = Self::from_root(init, repo)?; for op in ops { - state.op(op, [].into_iter(), repo)?; + state.op(op, [], repo)?; } Ok(state) } diff --git a/crates/radicle/src/node/db.rs b/crates/radicle/src/node/db.rs index 367e50da..68d46543 100644 --- a/crates/radicle/src/node/db.rs +++ b/crates/radicle/src/node/db.rs @@ -220,7 +220,7 @@ pub fn bump(db: &sql::Connection) -> Result { db.execute(format!("PRAGMA user_version = {new}"))?; - Ok(new as usize) + Ok(new) } /// Migrate the database to the latest schema. diff --git a/flake.lock b/flake.lock index a53272f3..d894ab59 100644 --- a/flake.lock +++ b/flake.lock @@ -161,11 +161,11 @@ ] }, "locked": { - "lastModified": 1771384185, - "narHash": "sha256-KvmjUeA7uODwzbcQoN/B8DCZIbhT/Q/uErF1BBMcYnw=", + "lastModified": 1778210054, + "narHash": "sha256-iYINsX0BVDxTXd0z4FzDpBYHZ9fWUtwjG9cKSXwe9Tg=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "23dd7fa91602a68bd04847ac41bc10af1e6e2fd2", + "rev": "bc83d66023d19fb301ee98772643b24b6129ef48", "type": "github" }, "original": { diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 547da220..f062c265 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "1.90" +channel = "1.95" profile = "default" components = [ "rust-src" ]