make clippy happy

This commit is contained in:
B. Petersen
2020-04-16 22:49:34 +02:00
parent e1903edd04
commit 1eaef94c71

View File

@@ -1194,7 +1194,7 @@ fn create_or_lookup_adhoc_group(
// use subject as initial chat name
let grpname = mime_parser
.get_subject()
.unwrap_or("Unnamed group".to_string());
.unwrap_or_else(|| "Unnamed group".to_string());
// create group record
let new_chat_id: ChatId = create_group_record(