Skip to content

Commit ad3176c

Browse files
committed
bump rust edition
1 parent c06c7f3 commit ad3176c

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cntr"
3-
edition = "2021"
3+
edition = "2024"
44
description = "A container debugging tool based on FUSE"
55
version = "1.6.1"
66
authors = ["Jörg Thalheim <[email protected]>"]

rustfmt.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
edition = "2024"
12
reorder_imports = true

src/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ impl CntrFs {
306306
}
307307

308308
pub fn mount(&self, mountpoint: &Path, selinux_context: &Option<String>) -> Result<()> {
309-
let context = if let Some(ref context) = selinux_context {
309+
let context = if let Some(context) = selinux_context {
310310
format!("context=\"{}\"", context)
311311
} else {
312312
"".to_owned()

treefmt.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
projectRootFile = "flake.lock";
1111

1212
programs.nixfmt.enable = !pkgs.hostPlatform.isRiscV64;
13-
programs.rustfmt.enable = true;
13+
programs.rustfmt = {
14+
enable = true;
15+
edition = "2024";
16+
};
1417
};
1518
};
1619
}

0 commit comments

Comments
 (0)