Skip to content

Commit 0a14d16

Browse files
fix(overlay): address clippy issues
1 parent d3766b0 commit 0a14d16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/impls/overlay.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl OverlayFS {
6363
return self.write_layer().join(".whiteout/_wo");
6464
}
6565
self.write_layer()
66-
.join(&format!(".whiteout/{}_wo", &path[1..]))
66+
.join(format!(".whiteout/{}_wo", &path[1..]))
6767
}
6868

6969
fn ensure_has_parent(&self, path: &str) -> VfsResult<()> {
@@ -95,7 +95,7 @@ impl FileSystem for OverlayFS {
9595
}
9696
}
9797
// remove whiteout entries that have been removed
98-
let whiteout_path = self.write_layer().join(&format!(".whiteout{}", path))?;
98+
let whiteout_path = self.write_layer().join(format!(".whiteout{}", path))?;
9999
if whiteout_path.exists()? {
100100
for path in whiteout_path.read_dir()? {
101101
let filename = path.filename();

0 commit comments

Comments
 (0)