Cargo clippy and cargo fmt
This commit is contained in:
parent
b0000c0117
commit
ed609cf06c
22 changed files with 286 additions and 94 deletions
|
|
@ -90,7 +90,10 @@ pub async fn get_booking<RestState: RestStateDef>(
|
|||
) -> Response {
|
||||
error_handler(
|
||||
(async {
|
||||
let booking = rest_state.booking_service().get(booking_id, ().into()).await?;
|
||||
let booking = rest_state
|
||||
.booking_service()
|
||||
.get(booking_id, ().into())
|
||||
.await?;
|
||||
Ok(Response::builder()
|
||||
.status(200)
|
||||
.body(Body::new(
|
||||
|
|
@ -129,7 +132,10 @@ pub async fn delete_booking<RestState: RestStateDef>(
|
|||
) -> Response {
|
||||
error_handler(
|
||||
(async {
|
||||
rest_state.booking_service().delete(booking_id, ().into()).await?;
|
||||
rest_state
|
||||
.booking_service()
|
||||
.delete(booking_id, ().into())
|
||||
.await?;
|
||||
Ok(Response::builder().status(200).body(Body::empty()).unwrap())
|
||||
})
|
||||
.await,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue