Skip to content

Commit 6e1e222

Browse files
committed
build(deps): update the rust version for adopt edition 2024
1 parent ef759bd commit 6e1e222

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ edition = "2021"
2525

2626
# Common dependencies for all crates
2727
[workspace.dependencies]
28-
async-trait = "0.1.52"
28+
async-trait = "0.1.89"
2929
cgroups-rs = "0.4.0"
3030
crossbeam = "0.8.1"
3131
futures = "0.3.19"

crates/shim/src/mount_linux.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -791,12 +791,12 @@ pub fn setup_loop_dev(backing_file: &str, loop_dev: &str, params: &LoopParams) -
791791
}
792792
// 3. set info
793793
let mut info = LoopInfo::default();
794-
let backing_file_truncated = if backing_file.as_bytes().len() > info.file_name.len() {
794+
let backing_file_truncated = if backing_file.len() > info.file_name.len() {
795795
&backing_file[0..info.file_name.len()]
796796
} else {
797797
backing_file
798798
};
799-
info.file_name[..backing_file_truncated.as_bytes().len()]
799+
info.file_name[..backing_file_truncated.len()]
800800
.copy_from_slice(backing_file_truncated.as_bytes());
801801
if params.readonly {
802802
info.flags |= LO_FLAGS_READ_ONLY;

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "1.82"
2+
channel = "1.91"
33
components = ["rustfmt", "clippy", "llvm-tools"]

0 commit comments

Comments
 (0)