Skip to content

Commit

Permalink
Merge pull request #6851 from lcheylus/openbsd-suspicious_open_options
Browse files Browse the repository at this point in the history
sort: enable clippy::suspicious_open_options on OpenBSD
  • Loading branch information
sylvestre authored Nov 14, 2024
2 parents c8a1830 + 15b3194 commit 17fee51
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/uu/sort/src/sort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 17fee51

Please sign in to comment.