mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 04:31:05 +08:00
优化MessageFile结构体的get_name和get_fid方法
This commit is contained in:
parent
03fdcc300b
commit
fe06356bea
|
@ -19,10 +19,6 @@ pub struct MessageFile {
|
|||
}
|
||||
|
||||
impl MessageFile {
|
||||
pub fn get_name(&self) -> Option<&String> {
|
||||
self.name.as_ref()
|
||||
}
|
||||
pub fn get_fid(&self) -> Option<&String> {
|
||||
self.fid.as_ref()
|
||||
}
|
||||
pub fn get_name(&self) -> Option<&String> { self.name.as_ref() }
|
||||
pub fn get_fid(&self) -> Option<&String> { self.fid.as_ref() }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user