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