fmt
This commit is contained in:
+2
-2
@@ -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")))),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user