diff --git a/packages/backend-rs/src/federation/internal_actor/instance.rs b/packages/backend-rs/src/federation/internal_actor/instance.rs index 000ff83d49..957aa57492 100644 --- a/packages/backend-rs/src/federation/internal_actor/instance.rs +++ b/packages/backend-rs/src/federation/internal_actor/instance.rs @@ -30,7 +30,7 @@ async fn set_cache() -> Result<&'static User, Error> { .one(db_conn().await?) .await?; - Ok::(found_model.ok_or(Error::InstanceActorNotFound)?) + found_model.ok_or(Error::InstanceActorNotFound) }) .await?; diff --git a/packages/backend-rs/src/federation/internal_actor/relay.rs b/packages/backend-rs/src/federation/internal_actor/relay.rs index 849a148201..2c7c4bafcc 100644 --- a/packages/backend-rs/src/federation/internal_actor/relay.rs +++ b/packages/backend-rs/src/federation/internal_actor/relay.rs @@ -29,7 +29,7 @@ async fn set_id_cache() -> Result<&'static str, Error> { .one(db_conn().await?) .await?; - Ok::(found_id.ok_or(Error::RelayActorNotFound)?) + found_id.ok_or(Error::RelayActorNotFound) }) .await?;