Skip to content

Commit

Permalink
Fix warning about unused mut
Browse files Browse the repository at this point in the history
  • Loading branch information
ogoffart committed Aug 10, 2024
1 parent 34a0b07 commit d3eb5bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xtr/src/extract_messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ impl<'a> Extractor<'a> {
if let Some(msgid) = literal_to_string(&lit) {
let key = MessageKey(msgid.clone(), msgctxt.clone().unwrap_or_default());
let index = self.results.len();
let mut message = self.results.entry(key).or_insert_with(|| Message {
let message = self.results.entry(key).or_insert_with(|| Message {
msgctxt,
msgid,
index,
Expand Down

0 comments on commit d3eb5bf

Please sign in to comment.