Fix clippy lints

This commit is contained in:
Jonas Platte 2021-10-29 23:11:24 +02:00
parent a2570e1648
commit 56801780b6
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
2 changed files with 3 additions and 3 deletions

View File

@ -169,7 +169,7 @@ impl<E: Event> TestStore<E> {
self.0 self.0
.get(event_id) .get(event_id)
.map(Arc::clone) .map(Arc::clone)
.ok_or_else(|| Error::NotFound(format!("{} not found", event_id.to_string()))) .ok_or_else(|| Error::NotFound(format!("{} not found", event_id)))
} }
/// Returns the events that correspond to the `event_ids` sorted in the same order. /// Returns the events that correspond to the `event_ids` sorted in the same order.

View File

@ -171,7 +171,7 @@ pub fn do_check(
let ev = event_map.get(&node).unwrap_or_else(|| { let ev = event_map.get(&node).unwrap_or_else(|| {
panic!( panic!(
"{} not found in {:?}", "{} not found in {:?}",
node.to_string(), node,
event_map.keys().map(ToString::to_string).collect::<Vec<_>>() event_map.keys().map(ToString::to_string).collect::<Vec<_>>()
) )
}); });
@ -209,7 +209,7 @@ impl<E: Event> TestStore<E> {
self.0 self.0
.get(event_id) .get(event_id)
.map(Arc::clone) .map(Arc::clone)
.ok_or_else(|| Error::NotFound(format!("{} not found", event_id.to_string()))) .ok_or_else(|| Error::NotFound(format!("{} not found", event_id)))
} }
/// Returns a Vec of the related auth events to the given `event`. /// Returns a Vec of the related auth events to the given `event`.