Browse Source

Swap params for consistency

master
Dylan Baker 5 years ago
parent
commit
16fc387909
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/routes.rs

+ 1
- 1
src/routes.rs View File

@@ -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…
Cancel
Save