From b591c4d35b13717d50a9e2580ffb57a3b7597174 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Wed, 31 Dec 2025 20:54:48 +0000 Subject: [PATCH 1/3] Revert "df: disable clippy::assigning_clones on OpenBSD" This reverts commit 225a1052a78d96bf561edeb20379535e71d2d691. --- src/uu/df/src/filesystem.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/uu/df/src/filesystem.rs b/src/uu/df/src/filesystem.rs index 25743941db0..041f739596b 100644 --- a/src/uu/df/src/filesystem.rs +++ b/src/uu/df/src/filesystem.rs @@ -291,9 +291,7 @@ mod tests { } #[test] - // clippy::assigning_clones added with Rust 1.78 - // Rust version = 1.76 on OpenBSD stable/7.5 - #[cfg_attr(not(target_os = "openbsd"), allow(clippy::assigning_clones))] + #[allow(clippy::assigning_clones)] fn test_dev_name_match() { let tmp = tempfile::TempDir::new().expect("Failed to create temp dir"); let dev_name = std::fs::canonicalize(tmp.path()) From 28965226aa538992acf99428389845d673151127 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Wed, 31 Dec 2025 20:55:15 +0000 Subject: [PATCH 2/3] Revert "cp: disable clippy::assigning_clones on OpenBSD" This reverts commit 7a556a6e82d38749a92b60a986f7430e82e79282. --- src/uu/cp/src/cp.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/uu/cp/src/cp.rs b/src/uu/cp/src/cp.rs index 1502a7ada72..1de71d36ae0 100644 --- a/src/uu/cp/src/cp.rs +++ b/src/uu/cp/src/cp.rs @@ -1279,9 +1279,7 @@ fn parse_path_args( }; if options.strip_trailing_slashes { - // clippy::assigning_clones added with Rust 1.78 - // Rust version = 1.76 on OpenBSD stable/7.5 - #[cfg_attr(not(target_os = "openbsd"), allow(clippy::assigning_clones))] + #[allow(clippy::assigning_clones)] for source in &mut paths { *source = source.components().as_path().to_owned(); } From 6485735b14ba159fe63c434f834b8e7ce33d850e Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Wed, 31 Dec 2025 20:55:29 +0000 Subject: [PATCH 3/3] Revert "tail: disable clippy::assigning_clones on OpenBSD" This reverts commit 14258b12ad15442dafca91301e4f2e68a7884aee. --- src/uu/tail/src/follow/watch.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/uu/tail/src/follow/watch.rs b/src/uu/tail/src/follow/watch.rs index 95f38aabc67..b4b4d00acf4 100644 --- a/src/uu/tail/src/follow/watch.rs +++ b/src/uu/tail/src/follow/watch.rs @@ -47,9 +47,7 @@ impl WatcherRx { Tested for notify::InotifyWatcher and for notify::PollWatcher. */ if let Some(parent) = path.parent() { - // clippy::assigning_clones added with Rust 1.78 - // Rust version = 1.76 on OpenBSD stable/7.5 - #[cfg_attr(not(target_os = "openbsd"), allow(clippy::assigning_clones))] + #[allow(clippy::assigning_clones)] if parent.is_dir() { path = parent.to_owned(); } else {