Fix 1.63 clippy lints (#2282)

This commit is contained in:
Kirill Bulatov
2022-08-16 18:49:22 +03:00
committed by GitHub
parent 9218426e41
commit 648e8bbefe
17 changed files with 35 additions and 25 deletions
+4 -6
View File
@@ -10,12 +10,10 @@ pub fn get_request_param<'a>(
) -> Result<&'a str, ApiError> {
match request.param(param_name) {
Some(arg) => Ok(arg),
None => {
return Err(ApiError::BadRequest(format!(
"no {} specified in path param",
param_name
)))
}
None => Err(ApiError::BadRequest(format!(
"no {} specified in path param",
param_name
))),
}
}