Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/uu/cp/src/cp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
4 changes: 1 addition & 3 deletions src/uu/df/src/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
4 changes: 1 addition & 3 deletions src/uu/tail/src/follow/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading