style: cargo clippy
This commit is contained in:
parent
7021c80f02
commit
c01570707d
2 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
|
|
@ -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),
|
||||
}?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue