refactor/polish ~ fix cargo clippy complaint (needless_lifetimes)

This commit is contained in:
Roy Ivy III
2020-07-25 11:09:10 -05:00
parent 305c3cbcdb
commit c36d71ba43
+1 -1
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#"\\?"#;