mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-20 05:39:52 -07:00
Fix newer Clippy warnings for 1.80 (#301)
This commit is contained in:
parent
d8d8e91295
commit
4fc71c9291
6 changed files with 41 additions and 38 deletions
|
@ -5,6 +5,7 @@ use std::collections::hash_map::DefaultHasher;
|
|||
use std::collections::hash_set;
|
||||
use std::collections::BTreeMap;
|
||||
use std::convert::TryFrom;
|
||||
use std::fmt::{self, Display};
|
||||
use std::hash::{Hash, Hasher};
|
||||
use std::ops::{Deref, DerefMut};
|
||||
|
||||
|
@ -1144,9 +1145,9 @@ impl From<RoomMessageEvent> for Message {
|
|||
}
|
||||
}
|
||||
|
||||
impl ToString for Message {
|
||||
fn to_string(&self) -> String {
|
||||
self.event.body().into_owned()
|
||||
impl Display for Message {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "{}", self.event.body())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1423,7 +1424,7 @@ pub mod tests {
|
|||
"Alt text".to_string(),
|
||||
"mxc://matrix.org/jDErsDugkNlfavzLTjJNUKAH".into()
|
||||
)
|
||||
.info(Some(Box::new(ImageInfo::default())))
|
||||
.info(Some(Box::default()))
|
||||
))),
|
||||
"[Attached Image: Alt text]".to_string()
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue