diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2024-11-14 22:50:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-14 22:50:37 +0100 |
commit | 17fee5192ec3f23a4f42264a946dc082d5eccc6c (patch) | |
tree | 82b0f15d2dab464cb75b10d10790394e8857f352 | |
parent | c8a1830d85e0fc0ebabbfc240aeb14c6407718f0 (diff) | |
parent | 15b3194d30a6b9b214584b39706e052ffe3b5e13 (diff) |
Merge pull request #6851 from lcheylus/openbsd-suspicious_open_options
sort: enable clippy::suspicious_open_options on OpenBSD
-rw-r--r-- | src/uu/sort/src/sort.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/uu/sort/src/sort.rs b/src/uu/sort/src/sort.rs index 529bc12cd0..c2e752bdf6 100644 --- a/src/uu/sort/src/sort.rs +++ b/src/uu/sort/src/sort.rs @@ -258,9 +258,7 @@ impl Output { let file = if let Some(name) = name { // This is different from `File::create()` because we don't truncate the output yet. // This allows using the output file as an input file. - // clippy::suspicious_open_options supported only for Rust >= 1.77.0 - // Rust version = 1.76 on OpenBSD stable/7.5 - #[cfg_attr(not(target_os = "openbsd"), allow(clippy::suspicious_open_options))] + #[allow(clippy::suspicious_open_options)] let file = OpenOptions::new() .write(true) .create(true) |