Skip to content

Commit

Permalink
Don't need the type since we use unwrap_or.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Benitez committed Mar 22, 2016
1 parent 877b37c commit 1e9c078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/manual_routes/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use rocket::{Rocket, Request, Response, Route};
use rocket::Method::*;

fn root(req: Request) -> Response<'static> {
let name = req.get_param::<&str>(0).unwrap_or("unnamed");
let name = req.get_param(0).unwrap_or("unnamed");
Response::new(format!("Hello, {}!", name))
}

Expand Down

0 comments on commit 1e9c078

Please sign in to comment.