clippy: use as_deref()

This commit is contained in:
Alexander Krotov
2020-04-13 23:02:57 +03:00
committed by Alexander Krotov
parent db5b5d321b
commit 3a91c87c73
+1 -1
View File
@@ -324,7 +324,7 @@ impl ChatId {
time(),
msg.viewtype,
MessageState::OutDraft,
msg.text.as_ref().map(String::as_str).unwrap_or(""),
msg.text.as_deref().unwrap_or(""),
msg.param.to_string(),
1,
],