chore (backend-rs): apply clippy suggestions
This commit is contained in:
parent
e35ce24369
commit
ffcde7c7ec
2 changed files with 2 additions and 2 deletions
|
@ -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?;
|
||||||
|
|
||||||
|
|
|
@ -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?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue