From 7402a688ecaaeabb01d36e3d2fa559a722496c97 Mon Sep 17 00:00:00 2001 From: yukang Date: Mon, 6 Sep 2021 23:39:54 +0800 Subject: [PATCH] fix style --- src/process/init.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/process/init.rs b/src/process/init.rs index 2528c1ea5..ebcae18ba 100644 --- a/src/process/init.rs +++ b/src/process/init.rs @@ -165,8 +165,8 @@ fn masked_path(path: &str, mount_label: &Option) -> Result<()> { } Err(nix::errno::Errno::ENOTDIR) => { let label = match mount_label { - Some(label) => format!("context={}", label), - None => String::from(""), + Some(l) => format!("context={}", l), + None => "".to_string(), }; let _ = nix_mount( Some("tmpfs"),