fmt
This commit is contained in:
parent
fa5af76036
commit
d01c86c7e6
@ -11,8 +11,8 @@ fn events() -> String {
|
|||||||
#[get("/event/<id>")]
|
#[get("/event/<id>")]
|
||||||
fn event_id(id: Result<u64, &str>) -> Result<String, BadRequest<String>> {
|
fn event_id(id: Result<u64, &str>) -> Result<String, BadRequest<String>> {
|
||||||
match id {
|
match id {
|
||||||
Ok(id) => { Ok(format!("event for {}", id)) }
|
Ok(id) => Ok(format!("event for {}", id)),
|
||||||
Err(_) => { Err(BadRequest(Some(format!("event id must be a valid u64")))) }
|
Err(_) => Err(BadRequest(Some(format!("event id must be a valid u64")))),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user