lot: use as_deref()

This commit is contained in:
Alexander Krotov
2020-04-13 23:02:57 +03:00
committed by Alexander Krotov
parent ec089faf3a
commit e909b8199b
+2 -2
View File
@@ -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 {