From a75fd5eb811b93f1bf5398b1dff07ad19b22d8af Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Mon, 11 Sep 2023 21:16:31 +0100 Subject: [PATCH] runk: Fix rust unecessary mut error - Fix `error: variable does not need to be mutable` in rust 1.72 Fixes: #7902 Signed-off-by: stevenhorsman --- src/tools/runk/libcontainer/src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/runk/libcontainer/src/utils.rs b/src/tools/runk/libcontainer/src/utils.rs index b5e9d83770..ec1a71254a 100644 --- a/src/tools/runk/libcontainer/src/utils.rs +++ b/src/tools/runk/libcontainer/src/utils.rs @@ -36,7 +36,7 @@ pub fn create_dir_with_mode>(path: P, mode: Mode, recursive: bool /// If root in spec is a relative path, make it absolute. pub fn canonicalize_spec_root(spec: &mut Spec, bundle_canon: &Path) -> Result<()> { - let mut spec_root = spec + let spec_root = spec .root .as_mut() .ok_or_else(|| anyhow!("root config was not present in the spec file"))?;