优化MessageFile结构体的get_name和get_fid方法

This commit is contained in:
shenjack 2024-02-25 01:32:15 +08:00
parent 03fdcc300b
commit fe06356bea
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -19,10 +19,6 @@ pub struct MessageFile {
} }
impl MessageFile { impl MessageFile {
pub fn get_name(&self) -> Option<&String> { pub fn get_name(&self) -> Option<&String> { self.name.as_ref() }
self.name.as_ref() pub fn get_fid(&self) -> Option<&String> { self.fid.as_ref() }
}
pub fn get_fid(&self) -> Option<&String> {
self.fid.as_ref()
}
} }