mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
lot: use as_deref()
This commit is contained in:
committed by
Alexander Krotov
parent
ec089faf3a
commit
e909b8199b
@@ -40,11 +40,11 @@ impl Lot {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_text1(&self) -> Option<&str> {
|
pub fn get_text1(&self) -> Option<&str> {
|
||||||
self.text1.as_ref().map(|s| s.as_str())
|
self.text1.as_deref()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_text2(&self) -> Option<&str> {
|
pub fn get_text2(&self) -> Option<&str> {
|
||||||
self.text2.as_ref().map(|s| s.as_str())
|
self.text2.as_deref()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_text1_meaning(&self) -> Meaning {
|
pub fn get_text1_meaning(&self) -> Meaning {
|
||||||
|
|||||||
Reference in New Issue
Block a user