Skip to content

Commit

Permalink
test: remove ineffective open option
Browse files Browse the repository at this point in the history
  • Loading branch information
Teajey committed Mar 9, 2024
1 parent 4c8344d commit 4deb49a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/frontmatter_file/keeper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,7 @@ mod test {
}

fn write<T: std::fmt::Display>(&self, str: T) -> std::io::Result<()> {
let mut file = std::fs::OpenOptions::new()
.write(true)
.append(true)
.open(&self.path)?;
let mut file = std::fs::OpenOptions::new().append(true).open(&self.path)?;

write!(file, "{str}")?;

Expand Down

0 comments on commit 4deb49a

Please sign in to comment.