From d3eb5bfdffefc12ca5a5a651b78ac41a726b9534 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Sat, 10 Aug 2024 18:53:55 +0200 Subject: [PATCH] Fix warning about unused mut --- xtr/src/extract_messages.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtr/src/extract_messages.rs b/xtr/src/extract_messages.rs index 152f81d..c1f7c76 100644 --- a/xtr/src/extract_messages.rs +++ b/xtr/src/extract_messages.rs @@ -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,