style: cargo clippy
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/push/publish-docs Pipeline was successful

This commit is contained in:
Radical 2025-06-02 00:30:10 +02:00
parent 7021c80f02
commit c01570707d
2 changed files with 3 additions and 3 deletions

View file

@ -155,7 +155,7 @@ async fn main() -> Result<(), Error> {
App::new()
.app_data(web::Data::new(data.clone()))
.wrap(cors)
.service(api::web(&data.config.web.backend_url.path()))
.service(api::web(data.config.web.backend_url.path()))
})
.bind((web.ip, web.port))?
.run()

View file

@ -309,7 +309,7 @@ impl Channel {
.await
{
Ok(r) => Ok(Some(r)),
Err(e) if e == diesel::result::Error::NotFound => Ok(None),
Err(diesel::result::Error::NotFound) => Ok(None),
Err(e) => Err(e),
}?;
@ -328,7 +328,7 @@ impl Channel {
.await
{
Ok(r) => Ok(r),
Err(e) if e == diesel::result::Error::NotFound => Ok(0),
Err(diesel::result::Error::NotFound) => Ok(0),
Err(e) => Err(e),
}?;