mirror of
https://github.com/uutils/coreutils
synced 2025-01-22 01:45:24 +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()
|
let file = OpenOptions::new()
|
||||||
.write(true)
|
.write(true)
|
||||||
.create(true)
|
.create(true)
|
||||||
|
.truncate(true)
|
||||||
.open(name)
|
.open(name)
|
||||||
.map_err(|e| SortError::OpenFailed {
|
.map_err(|e| SortError::OpenFailed {
|
||||||
path: name.to_owned(),
|
path: name.to_owned(),
|
||||||
|
|
Loading…
Reference in a new issue