Skip to content

Commit da61f34

Browse files
committed
fix of warning: the borrowed expression implements the required traits
```sh warning: the borrowed expression implements the required traits --> src/lib.rs:151:23 | 151 | std::fs::copy(&src, &dest).with_context(|| { | ^^^^ help: change this to: `src` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default warning: `cargo-ament-build` (lib) generated 1 warning (run `cargo clippy --fix --lib -p cargo-ament-build` to apply 1 suggestion) ```
1 parent 2ba9c7a commit da61f34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ fn copy(src: impl AsRef<Path>, dest_dir: impl AsRef<Path>) -> Result<()> {
148148
}
149149
}
150150
} else if src.is_file() {
151-
std::fs::copy(&src, &dest).with_context(|| {
151+
std::fs::copy(src, &dest).with_context(|| {
152152
format!(
153153
"Failed to copy '{}' to '{}'.",
154154
src.display(),

0 commit comments

Comments
 (0)