clippy: use as_deref()

This commit is contained in:
Alexander Krotov
2020-03-28 03:16:07 +03:00
committed by Alexander Krotov
parent db5b5d321b
commit 3a91c87c73

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,
],