1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-03 06:27:45 +00:00

refactor/polish ~ fix cargo clippy complaint (needless_lifetimes)

This commit is contained in:
Roy Ivy III 2020-07-24 22:23:00 -05:00
parent 305c3cbcdb
commit c36d71ba43

View file

@ -873,7 +873,7 @@ fn copy_source(
}
#[cfg(target_os = "windows")]
fn adjust_canonicalization<'a>(p: &'a Path) -> Cow<'a, Path> {
fn adjust_canonicalization(p: &Path) -> Cow<Path> {
// In some cases, \\? can be missing on some Windows paths. Add it at the
// beginning unless the path is prefixed with a device namespace.
const VERBATIM_PREFIX: &str = r#"\\?"#;