chore: Fix new clippy lints
This commit is contained in:
parent
ae83055119
commit
c77f08024a
@ -208,7 +208,7 @@ impl TreeSink for Fragment {
|
||||
|
||||
fn add_attrs_if_missing(&mut self, target: &Self::Handle, attrs: Vec<Attribute>) {
|
||||
let target = self.nodes[*target].as_element_mut().unwrap();
|
||||
target.attrs.extend(attrs.into_iter());
|
||||
target.attrs.extend(attrs);
|
||||
}
|
||||
|
||||
fn remove_from_parent(&mut self, target: &Self::Handle) {
|
||||
|
@ -210,7 +210,7 @@ mod tests {
|
||||
#[test]
|
||||
fn deserialize_valid_room_id_or_alias_id_with_a_room_id() {
|
||||
assert_eq!(
|
||||
serde_json::from_str::<OwnedRoomOrAliasId>(r##""!29fhd83h92h0:example.com""##)
|
||||
serde_json::from_str::<OwnedRoomOrAliasId>(r#""!29fhd83h92h0:example.com""#)
|
||||
.expect("Failed to convert JSON to RoomId"),
|
||||
<&RoomOrAliasId>::try_from("!29fhd83h92h0:example.com")
|
||||
.expect("Failed to create RoomAliasId.")
|
||||
|
@ -1174,15 +1174,8 @@ mod tests {
|
||||
.collect::<Vec<_>>()
|
||||
);
|
||||
|
||||
let expected = vec![
|
||||
"$CREATE:foo",
|
||||
"$IJR:foo",
|
||||
"$PA:foo",
|
||||
"$IMA:foo",
|
||||
"$IMB:foo",
|
||||
"$IMC:foo",
|
||||
"$MB:foo",
|
||||
];
|
||||
let expected =
|
||||
["$CREATE:foo", "$IJR:foo", "$PA:foo", "$IMA:foo", "$IMB:foo", "$IMC:foo", "$MB:foo"];
|
||||
|
||||
for id in expected.iter().map(|i| event_id(i)) {
|
||||
// make sure our resolved events are equal to the expected list
|
||||
|
Loading…
x
Reference in New Issue
Block a user