mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
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 ee4392e30c
Signed-off-by: Laurent Cheylus <foxy@free.fr>
This commit is contained in:
parent
c8a1830d85
commit
15b3194d30
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue