Fix ingest clippies
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Aode (lion) 2021-12-05 15:27:10 -06:00
parent c50d59e2b3
commit 9abb291475

View file

@ -101,8 +101,7 @@ where
return Err(I::Error::from(AuthorityError {
authority,
actor: activity_actor.clone(),
})
.into());
}));
}
self.ingest
@ -144,12 +143,12 @@ where
{
// delivered a public activity to a user inbox
if !actor_id.is_shared() && activity.is_public() {
return Err(I::Error::from(InboxError).into());
return Err(I::Error::from(InboxError));
}
// delivered a private activity to a shared inbox
if actor_id.is_shared() && !activity.is_public() {
return Err(I::Error::from(InboxError).into());
return Err(I::Error::from(InboxError));
}
self.ingest
@ -190,7 +189,7 @@ where
if activity.id().host() != activity.actor_id().host()
|| activity.id().port() != activity.actor_id().port()
{
return Err(I::Error::from(HostError).into());
return Err(I::Error::from(HostError));
}
self.ingest