Browse Source

Remove unused lifetime

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

+ 1
- 1
src/routes.rs View File

@@ -46,7 +46,7 @@ pub fn show_snippet(id: i32, connection: DbConn) -> Template {
46 46
 }
47 47
 
48 48
 #[post("/api/snippets", format = "application/json", data = "<snippet>")]
49
-pub fn create_snippet<'a>(
49
+pub fn create_snippet(
50 50
     snippet: Json<InsertableSnippet>,
51 51
     connection: DbConn,
52 52
 ) -> Result<status::Created<Json<Snippet>>, Status> {

Loading…
Cancel
Save