From edea0ae87997844adf6ee1384b16f880a1931b61 Mon Sep 17 00:00:00 2001 From: Markus Pettersson Date: Thu, 8 Feb 2024 15:51:06 +0100 Subject: [PATCH] Fix `clippy` lint `ineffective_open_options` This new `clippy` lint was introduced in the latest Rust release (1.76). --- android/translations-converter/src/gettext/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/android/translations-converter/src/gettext/mod.rs b/android/translations-converter/src/gettext/mod.rs index b21e6075d5ae..ff92f9e6d420 100644 --- a/android/translations-converter/src/gettext/mod.rs +++ b/android/translations-converter/src/gettext/mod.rs @@ -24,10 +24,7 @@ pub fn append_to_template( file_path: impl AsRef, entries: impl Iterator, ) -> Result<(), io::Error> { - let file = OpenOptions::new() - .write(true) - .append(true) - .open(file_path)?; + let file = OpenOptions::new().append(true).open(file_path)?; let mut sorted_entries: Vec<_> = entries.collect(); let mut writer = BufWriter::new(file);