|
|
|
|
|
by codingbinary
3955 days ago
|
|
Because hello_world returns an IronResult, which in turn is just a simple Result type from Rust. Note that the status::Ok is different from the Ok(...). Iron::new expects a function that returns a Result type, so it has to be there. |
|