mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 15:22:38 +00:00
lint: fix lint clippy::suspicious_open_options
This commit is contained in:
parent
77a67559eb
commit
21d6eab847
1 changed files with 1 additions and 0 deletions
|
@ -254,6 +254,7 @@ impl Output {
|
|||
let file = OpenOptions::new()
|
||||
.write(true)
|
||||
.create(true)
|
||||
.truncate(true)
|
||||
.open(name)
|
||||
.map_err(|e| SortError::OpenFailed {
|
||||
path: name.to_owned(),
|
||||
|
|
Loading…
Reference in a new issue