lint: fix lint clippy::suspicious_open_options

This commit is contained in:
Krysztal112233 2024-03-21 23:36:48 +08:00
parent 77a67559eb
commit 21d6eab847
No known key found for this signature in database
GPG key ID: 331615739A596A02

View file

@ -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(),