[clippy] fix clippy issues

This commit is contained in:
2025-06-25 21:18:36 +02:00
parent 8fda4f79ed
commit ffb05e3a0a
3 changed files with 3 additions and 12 deletions

View File

@@ -171,10 +171,5 @@ fn get_relative_path(base: &Path, deep_path: &Path) -> std::io::Result<PathBuf>
full_canonical
.strip_prefix(&base_canonical)
.map(std::path::Path::to_path_buf)
.map_err(|_| {
std::io::Error::new(
std::io::ErrorKind::Other,
"Path is not within base directory",
)
})
.map_err(|_| std::io::Error::other("Path is not within base directory"))
}