From 4deb49a4ff4c79ba7574f5db0bf397df65e161b1 Mon Sep 17 00:00:00 2001 From: Teajey <21069848+Teajey@users.noreply.github.com> Date: Sat, 9 Mar 2024 16:11:07 +1300 Subject: [PATCH] test: remove ineffective open option --- src/frontmatter_file/keeper.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/frontmatter_file/keeper.rs b/src/frontmatter_file/keeper.rs index 7113f6a..7fcd192 100644 --- a/src/frontmatter_file/keeper.rs +++ b/src/frontmatter_file/keeper.rs @@ -209,10 +209,7 @@ mod test { } fn write(&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}")?;