mirror of
https://github.com/chatmail/core.git
synced 2026-04-02 05:22:14 +03:00
clippy: use as_deref()
This commit is contained in:
committed by
Alexander Krotov
parent
db5b5d321b
commit
3a91c87c73
@@ -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,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user