From 844c4fe4b7f90a1534913c37e3e94bf937e83d47 Mon Sep 17 00:00:00 2001 From: Fan Xuan Zhe Date: Tue, 13 May 2025 11:37:27 +0800 Subject: [PATCH] ozonec/linux: Fix needless borrow in container.rs Accroding to cargo clippy result, adding `&` to self.config.root.path.clone() is needless, so just remove it. Signed-off-by: Fan Xuan Zhe --- ozonec/src/linux/container.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ozonec/src/linux/container.rs b/ozonec/src/linux/container.rs index 2b51d21bc..776a65e7a 100644 --- a/ozonec/src/linux/container.rs +++ b/ozonec/src/linux/container.rs @@ -618,7 +618,7 @@ impl Container for LinuxContainer { 0 }; - let rootfs = canonicalize(&self.config.root.path.clone()) + let rootfs = canonicalize(self.config.root.path.clone()) .with_context(|| "Failed to canonicalize root path")?; let bundle = match rootfs.parent() { Some(p) => p -- Gitee