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
|
@ -93,6 +93,7 @@ impl Config {
|
|||
let mut file = OpenOptions::new()
|
||||
.create(true)
|
||||
.write(true)
|
||||
.truncate(true)
|
||||
.mode(FILE_MODE)
|
||||
.open(path)?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue