mirror of
https://github.com/chatmail/core.git
synced 2026-05-04 22:06: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> {
|
||||
self.text1.as_ref().map(|s| s.as_str())
|
||||
self.text1.as_deref()
|
||||
}
|
||||
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user