Closed Gaelan closed 3 years ago
FileStorage was opening files for writing without turning on truncate, so if the new contents were smaller, we'd leave some of the old file behind, making it invalid JSON.
This PR fixes that, and adds a test.
Closes #35.
v0.1.0-pre.5 with the fix is out on crates.io.
v0.1.0-pre.5
FileStorage was opening files for writing without turning on truncate, so if the new contents were smaller, we'd leave some of the old file behind, making it invalid JSON.
This PR fixes that, and adds a test.
Closes #35.