summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2024-11-14 22:50:37 +0100
committerGitHub <noreply@github.com>2024-11-14 22:50:37 +0100
commit17fee5192ec3f23a4f42264a946dc082d5eccc6c (patch)
tree82b0f15d2dab464cb75b10d10790394e8857f352
parentc8a1830d85e0fc0ebabbfc240aeb14c6407718f0 (diff)
parent15b3194d30a6b9b214584b39706e052ffe3b5e13 (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.rs4
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)