Skip to content

Commit 15b3194

Browse files
committed
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 ee4392e Signed-off-by: Laurent Cheylus <[email protected]>
1 parent c8a1830 commit 15b3194

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/uu/sort/src/sort.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,7 @@ impl Output {
258258
let file = if let Some(name) = name {
259259
// This is different from `File::create()` because we don't truncate the output yet.
260260
// This allows using the output file as an input file.
261-
// clippy::suspicious_open_options supported only for Rust >= 1.77.0
262-
// Rust version = 1.76 on OpenBSD stable/7.5
263-
#[cfg_attr(not(target_os = "openbsd"), allow(clippy::suspicious_open_options))]
261+
#[allow(clippy::suspicious_open_options)]
264262
let file = OpenOptions::new()
265263
.write(true)
266264
.create(true)

0 commit comments

Comments
 (0)