Explorar el Código

Swap params for consistency

master
Dylan Baker hace 5 años
padre
commit
16fc387909
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/routes.rs

+ 1
- 1
src/routes.rs Ver fichero

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

Loading…
Cancelar
Guardar