mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-08 05:43:13 +00:00
style: clean use for question_mark
- remove useless `Ok` enclosing with `?` lint message: enclosing `Ok` and `?` operator are unneeded help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#needless_question_mark - use question mark instead of manual implementation lint message: this `match` expression can be replaced with `?` help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#question_mark
This commit is contained in:
@@ -61,7 +61,7 @@ pub async fn handle_read_batch(
|
||||
resps.push(resp?);
|
||||
}
|
||||
|
||||
Ok(json_ok_response(&resps)?)
|
||||
json_ok_response(&resps)
|
||||
}
|
||||
|
||||
async fn handle_read_batch_query(
|
||||
@@ -155,7 +155,7 @@ pub async fn handle_delete_batch(
|
||||
resps.push(resp?);
|
||||
}
|
||||
|
||||
Ok(json_ok_response(&resps)?)
|
||||
json_ok_response(&resps)
|
||||
}
|
||||
|
||||
async fn handle_delete_batch_query(
|
||||
|
||||
Reference in New Issue
Block a user