chore (backend-rs): apply clippy suggestions

This commit is contained in:
naskya 2024-07-26 18:53:07 +09:00
parent e35ce24369
commit ffcde7c7ec
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ async fn set_cache() -> Result<&'static User, Error> {
.one(db_conn().await?) .one(db_conn().await?)
.await?; .await?;
Ok::<User, Error>(found_model.ok_or(Error::InstanceActorNotFound)?) found_model.ok_or(Error::InstanceActorNotFound)
}) })
.await?; .await?;

View file

@ -29,7 +29,7 @@ async fn set_id_cache() -> Result<&'static str, Error> {
.one(db_conn().await?) .one(db_conn().await?)
.await?; .await?;
Ok::<String, Error>(found_id.ok_or(Error::RelayActorNotFound)?) found_id.ok_or(Error::RelayActorNotFound)
}) })
.await?; .await?;