Skip to content

Commit

Permalink
Fix clippy lint ineffective_open_options
Browse files Browse the repository at this point in the history
This new `clippy` lint was introduced in the latest Rust release (1.76).
  • Loading branch information
MarkusPettersson98 committed Feb 8, 2024
1 parent 0afb7cc commit cb4630c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions android/translations-converter/src/gettext/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ pub fn append_to_template(
file_path: impl AsRef<Path>,
entries: impl Iterator<Item = MsgEntry>,
) -> 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);

Expand Down

0 comments on commit cb4630c

Please sign in to comment.