From c36d71ba435de39f84cd539d7963f44a8430c584 Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Fri, 24 Jul 2020 22:23:00 -0500 Subject: [PATCH] refactor/polish ~ fix `cargo clippy` complaint (needless_lifetimes) --- src/uu/cp/src/cp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/cp/src/cp.rs b/src/uu/cp/src/cp.rs index 090709c00..3c04a55e5 100644 --- a/src/uu/cp/src/cp.rs +++ b/src/uu/cp/src/cp.rs @@ -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 { // 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#"\\?"#;