From d73724c31a87b69fd53e6fcef87bd2b0bbb21115 Mon Sep 17 00:00:00 2001 From: Jake Date: Thu, 17 Oct 2024 23:40:47 -0700 Subject: [PATCH] Remove unneeded write for clippy --- src/csv.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/csv.rs b/src/csv.rs index 0706b86..5cf95f8 100644 --- a/src/csv.rs +++ b/src/csv.rs @@ -98,7 +98,7 @@ impl Writer for CSVWriter { let lines = writables.map(|c| c.to_csv()).collect::(); // Open file in append mode - let mut file = match OpenOptions::new().write(true).append(true).open(&self.path) { + let mut file = match OpenOptions::new().append(true).open(&self.path) { Ok(file) => file, Err(..) => { logger.log("Could not open file for writing.", logger::Severity::Error);