Dylan Baker 5 лет назад
Родитель
Сommit
a586c4d00b
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      src/routes.rs

+ 1
- 1
src/routes.rs Просмотреть файл

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

Загрузка…
Отмена
Сохранить