Skip to content

Commit

Permalink
Just use array instead of a macro
Browse files Browse the repository at this point in the history
  • Loading branch information
isbm committed Nov 9, 2023
1 parent bca7940 commit 900f091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rootfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 900f091

Please sign in to comment.