Explorar el Código

Remove unused lifetime

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

+ 1
- 1
src/routes.rs Ver fichero

@@ -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…
Cancelar
Guardar