fix: writing config does not truncate (#55)

Co-authored-by: Manu [tennox] <tennox+git@txlab.io>
This commit is contained in:
Manuel 2023-06-13 01:35:28 +01:00 committed by GitHub
parent 2568e6df7a
commit 552120a68a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,6 +93,7 @@ impl Config {
let mut file = OpenOptions::new()
.create(true)
.write(true)
.truncate(true)
.mode(FILE_MODE)
.open(path)?;