We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bb7eeb commit 7b6624eCopy full SHA for 7b6624e
devenv/src/util.rs
@@ -25,7 +25,7 @@ pub fn write_file_with_lock<P: AsRef<Path>, S: AsRef<str>>(path: P, content: S)
25
.read(true)
26
.write(true)
27
.create(true)
28
- .truncate(true)
+ .truncate(false)
29
.open(path)
30
.into_diagnostic()
31
.map_err(|e| miette!("Failed to open file {}: {}", path.display(), e))?;
0 commit comments