mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
fix/cp ~ correct cargo clippy
complaint exception (*allow* clippy::unnecessary_wraps)
This commit is contained in:
parent
9feff1e441
commit
423f4f9bf1
1 changed files with 1 additions and 1 deletions
|
@ -1088,7 +1088,7 @@ fn copy_attribute(source: &Path, dest: &Path, attribute: &Attribute) -> CopyResu
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(windows))]
|
#[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<()> {
|
fn symlink_file(source: &Path, dest: &Path, context: &str) -> CopyResult<()> {
|
||||||
match std::os::unix::fs::symlink(source, dest).context(context) {
|
match std::os::unix::fs::symlink(source, dest).context(context) {
|
||||||
Ok(_) => Ok(()),
|
Ok(_) => Ok(()),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue