mirror of
https://github.com/chatmail/core.git
synced 2026-05-19 23:06:32 +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(),
|
time(),
|
||||||
msg.viewtype,
|
msg.viewtype,
|
||||||
MessageState::OutDraft,
|
MessageState::OutDraft,
|
||||||
msg.text.as_ref().map(String::as_str).unwrap_or(""),
|
msg.text.as_deref().unwrap_or(""),
|
||||||
msg.param.to_string(),
|
msg.param.to_string(),
|
||||||
1,
|
1,
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user