mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-04 10:19:27 +02:00
Fix map_clone and explicit truncate when file is create
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
9929635b5b
commit
2cd2346edb
2 changed files with 2 additions and 7 deletions
|
@ -66,6 +66,7 @@ impl Sink for StdoutSink {
|
|||
OpenOptions::new()
|
||||
.write(true)
|
||||
.create(true)
|
||||
.truncate(true)
|
||||
.open(file)
|
||||
.map_err(|e| StdoutError::OpenFailure {
|
||||
file: file.to_string(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue