Make clippy happy (needless-return, etc.)
This commit is contained in:
parent
1a940b6e05
commit
231c6032f4
7 changed files with 19 additions and 17 deletions
|
@ -95,7 +95,7 @@ pub async fn get_pushrule_route(
|
|||
if let Some(rule) = rule {
|
||||
Ok(get_pushrule::Response { rule }.into())
|
||||
} else {
|
||||
Err(Error::BadRequest(ErrorKind::NotFound, "Push rule not found.").into())
|
||||
Err(Error::BadRequest(ErrorKind::NotFound, "Push rule not found."))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue