From 900f0915468356e71b0bdbf96d768aea937f6a6d Mon Sep 17 00:00:00 2001 From: Bo Maryniuk Date: Thu, 9 Nov 2023 22:43:00 +0100 Subject: [PATCH] Just use array instead of a macro --- src/rootfs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rootfs.rs b/src/rootfs.rs index 5fc8ebd..0846d03 100644 --- a/src/rootfs.rs +++ b/src/rootfs.rs @@ -88,7 +88,7 @@ impl RootFS { let dpth = PathBuf::from(PathBuf::from(fdir).join(&fname).to_str().unwrap().to_string()); let dlnk = PathBuf::from(dpth.to_str().unwrap().strip_prefix("/usr").unwrap()); - for p in vec![dpth, dlnk] { + for p in [dpth, dlnk] { if p.exists() { out.push(p); }