@@ -24,7 +24,7 @@ pub fn index(connection: DbConn) -> Result<Json<Vec<Gist>>, Status> {
}
#[get("/gists/<id>")]
-pub fn show_gist(connection: DbConn, id: i32) -> Template {
+pub fn show_gist(id: i32, connection: DbConn) -> Template {
let gist = match gists::get(&connection, id) {
Ok(gist) => Some(gist),
Err(_) => None,