events: Re-enable clippy::needless_update
This commit is contained in:
parent
af437bc642
commit
3cbc1c5038
@ -43,7 +43,6 @@ impl Serialize for Relation {
|
||||
where
|
||||
S: Serializer,
|
||||
{
|
||||
#[allow(clippy::needless_update)]
|
||||
let relates_to = match self {
|
||||
Relation::Annotation(r) => RelatesToJsonRepr {
|
||||
relation: Some(RelationJsonRepr::Annotation(r.clone())),
|
||||
@ -67,7 +66,6 @@ impl Serialize for Relation {
|
||||
event_id: event_id.clone(),
|
||||
is_falling_back: *is_falling_back,
|
||||
})),
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
Relation::_Custom => RelatesToJsonRepr::default(),
|
||||
|
@ -68,7 +68,6 @@ where
|
||||
where
|
||||
S: Serializer,
|
||||
{
|
||||
#[allow(clippy::needless_update)]
|
||||
let json_repr = match self {
|
||||
Relation::Reply { in_reply_to } => {
|
||||
EventWithRelatesToJsonRepr::<C>::new(RelatesToJsonRepr {
|
||||
@ -94,7 +93,6 @@ where
|
||||
event_id: event_id.clone(),
|
||||
is_falling_back: *is_falling_back,
|
||||
})),
|
||||
..Default::default()
|
||||
})
|
||||
}
|
||||
Relation::_Custom => EventWithRelatesToJsonRepr::<C>::default(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user