From 15b3194d30a6b9b214584b39706e052ffe3b5e13 Mon Sep 17 00:00:00 2001 From: Laurent Cheylus Date: Thu, 14 Nov 2024 13:52:00 +0100 Subject: [PATCH] sort: enable clippy::suspicious_open_options on OpenBSD On OpenBSD 7.6 (release October 2024), Rust version = 1.81.0 => we can now enable clippy::suspicious_open_options. Revert commit ee4392e30cfdcd4c464b0faa0af1ed79d8c0a752 Signed-off-by: Laurent Cheylus --- src/uu/sort/src/sort.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/uu/sort/src/sort.rs b/src/uu/sort/src/sort.rs index 529bc12cd..c2e752bdf 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)