From ffcde7c7ece8839db3fde201f79a7c937b20793a Mon Sep 17 00:00:00 2001 From: naskya Date: Fri, 26 Jul 2024 18:53:07 +0900 Subject: [PATCH] chore (backend-rs): apply clippy suggestions --- packages/backend-rs/src/federation/internal_actor/instance.rs | 2 +- packages/backend-rs/src/federation/internal_actor/relay.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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?;