events: Re-enable clippy::needless_update

This commit is contained in:
Kévin Commaille 2023-06-16 08:20:57 +02:00 committed by Kévin Commaille
parent af437bc642
commit 3cbc1c5038
2 changed files with 0 additions and 4 deletions

View File

@ -43,7 +43,6 @@ impl Serialize for Relation {
where where
S: Serializer, S: Serializer,
{ {
#[allow(clippy::needless_update)]
let relates_to = match self { let relates_to = match self {
Relation::Annotation(r) => RelatesToJsonRepr { Relation::Annotation(r) => RelatesToJsonRepr {
relation: Some(RelationJsonRepr::Annotation(r.clone())), relation: Some(RelationJsonRepr::Annotation(r.clone())),
@ -67,7 +66,6 @@ impl Serialize for Relation {
event_id: event_id.clone(), event_id: event_id.clone(),
is_falling_back: *is_falling_back, is_falling_back: *is_falling_back,
})), })),
..Default::default()
} }
} }
Relation::_Custom => RelatesToJsonRepr::default(), Relation::_Custom => RelatesToJsonRepr::default(),

View File

@ -68,7 +68,6 @@ where
where where
S: Serializer, S: Serializer,
{ {
#[allow(clippy::needless_update)]
let json_repr = match self { let json_repr = match self {
Relation::Reply { in_reply_to } => { Relation::Reply { in_reply_to } => {
EventWithRelatesToJsonRepr::<C>::new(RelatesToJsonRepr { EventWithRelatesToJsonRepr::<C>::new(RelatesToJsonRepr {
@ -94,7 +93,6 @@ where
event_id: event_id.clone(), event_id: event_id.clone(),
is_falling_back: *is_falling_back, is_falling_back: *is_falling_back,
})), })),
..Default::default()
}) })
} }
Relation::_Custom => EventWithRelatesToJsonRepr::<C>::default(), Relation::_Custom => EventWithRelatesToJsonRepr::<C>::default(),