Skip to content

Commit 1e11921

Browse files
authored
Merge pull request #9956 from xtqqczze/GH6356
Enable clippy::assigning_clones on OpenBSD
2 parents 9ae5be3 + 6485735 commit 1e11921

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

src/uu/cp/src/cp.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,9 +1279,7 @@ fn parse_path_args(
12791279
};
12801280

12811281
if options.strip_trailing_slashes {
1282-
// clippy::assigning_clones added with Rust 1.78
1283-
// Rust version = 1.76 on OpenBSD stable/7.5
1284-
#[cfg_attr(not(target_os = "openbsd"), allow(clippy::assigning_clones))]
1282+
#[allow(clippy::assigning_clones)]
12851283
for source in &mut paths {
12861284
*source = source.components().as_path().to_owned();
12871285
}

src/uu/df/src/filesystem.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,7 @@ mod tests {
291291
}
292292

293293
#[test]
294-
// clippy::assigning_clones added with Rust 1.78
295-
// Rust version = 1.76 on OpenBSD stable/7.5
296-
#[cfg_attr(not(target_os = "openbsd"), allow(clippy::assigning_clones))]
294+
#[allow(clippy::assigning_clones)]
297295
fn test_dev_name_match() {
298296
let tmp = tempfile::TempDir::new().expect("Failed to create temp dir");
299297
let dev_name = std::fs::canonicalize(tmp.path())

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ impl WatcherRx {
4747
Tested for notify::InotifyWatcher and for notify::PollWatcher.
4848
*/
4949
if let Some(parent) = path.parent() {
50-
// clippy::assigning_clones added with Rust 1.78
51-
// Rust version = 1.76 on OpenBSD stable/7.5
52-
#[cfg_attr(not(target_os = "openbsd"), allow(clippy::assigning_clones))]
50+
#[allow(clippy::assigning_clones)]
5351
if parent.is_dir() {
5452
path = parent.to_owned();
5553
} else {

0 commit comments

Comments
 (0)