Skip to content

Commit b302bbe

Browse files
authored
clippy: remove assigning_clones lint suppression (#10377)
1 parent 2d7a3bf commit b302bbe

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

src/uu/cp/src/cp.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,6 @@ fn parse_path_args(
13071307
};
13081308

13091309
if options.strip_trailing_slashes {
1310-
#[allow(clippy::assigning_clones)]
13111310
for source in &mut paths {
13121311
*source = source.components().as_path().to_owned();
13131312
}

src/uu/df/src/filesystem.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ mod tests {
291291
}
292292

293293
#[test]
294-
#[allow(clippy::assigning_clones)]
295294
fn test_dev_name_match() {
296295
let tmp = tempfile::TempDir::new().expect("Failed to create temp dir");
297296
let dev_name = std::fs::canonicalize(tmp.path())

src/uu/tail/src/follow/watch.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ impl WatcherRx {
4949
Tested for notify::InotifyWatcher and for notify::PollWatcher.
5050
*/
5151
if let Some(parent) = path.parent() {
52-
#[allow(clippy::assigning_clones)]
5352
if parent.is_dir() {
5453
path = parent.to_owned();
5554
} else {

0 commit comments

Comments
 (0)