Browse Source

nit: use default hashmap

Justin Tracey 2 months ago
parent
commit
88e3e914be
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bin/process.rs

+ 1 - 1
src/bin/process.rs

@@ -336,7 +336,7 @@ fn main() {
         for user in conversation.messages.iter().map(|m| m.user) {
             user_convo
                 .entry(user)
-                .or_insert_with(HashMap::new)
+                .or_default()
                 .insert(conversation.hash, conversation);
         }
     }