Fix clippy lints
This commit is contained in:
parent
a2570e1648
commit
56801780b6
@ -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.
|
||||||
|
@ -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`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user