mirror of
https://github.com/zhaofengli/attic.git
synced 2025-03-05 08:17:05 +00:00
fix: writing config does not truncate (#55)
Co-authored-by: Manu [tennox] <tennox+git@txlab.io>
This commit is contained in:
parent
2568e6df7a
commit
552120a68a
1 changed files with 1 additions and 0 deletions
|
@ -93,6 +93,7 @@ impl Config {
|
|||
let mut file = OpenOptions::new()
|
||||
.create(true)
|
||||
.write(true)
|
||||
.truncate(true)
|
||||
.mode(FILE_MODE)
|
||||
.open(path)?;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue