Skip to content

Commit

Permalink
Clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil committed Apr 2, 2024
1 parent dd287bc commit 095186f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ impl CacheRepo {
let mut file = std::fs::OpenOptions::new()
.write(true)
.create(true)
.truncate(true)
.open(&ref_path)?;
file.write_all(commit_hash.trim().as_bytes())?;
Ok(())
Expand Down

0 comments on commit 095186f

Please sign in to comment.