fix/cp ~ correct cargo clippy complaint exception (*allow* clippy::unnecessary_wraps)

This commit is contained in:
Roy Ivy III
2021-06-06 19:28:25 -05:00
parent 9feff1e441
commit 423f4f9bf1
+1 -1
View File
@@ -1088,7 +1088,7 @@ fn copy_attribute(source: &Path, dest: &Path, attribute: &Attribute) -> CopyResu
}
#[cfg(not(windows))]
#[allow(clippy::unnecessary_unwrap)] // needed for windows version
#[allow(clippy::unnecessary_wraps)] // needed for windows version
fn symlink_file(source: &Path, dest: &Path, context: &str) -> CopyResult<()> {
match std::os::unix::fs::symlink(source, dest).context(context) {
Ok(_) => Ok(()),