Skip to content

Commit 89c2d2b

Browse files
committed
fix: format error message for clarity in open_or_create_subdir function
1 parent a1ef268 commit 89c2d2b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/uucore/src/lib/features/safe_traversal.rs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,10 @@ fn open_or_create_subdir(parent_fd: &DirFd, name: &OsStr, mode: u32) -> io::Resu
463463
}
464464
_ => Err(io::Error::new(
465465
io::ErrorKind::AlreadyExists,
466-
format!("path component exists but is not a directory: {}", name.display()),
466+
format!(
467+
"path component exists but is not a directory: {}",
468+
name.display()
469+
),
467470
)),
468471
}
469472
}

0 commit comments

Comments
 (0)