mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-01 13:37:48 +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…
Add table
Add a link
Reference in a new issue