upgrade actix-web to v3

This commit is contained in:
Rob Ede 2020-09-12 03:29:17 +01:00
parent 4acaecd921
commit ba0f44e361
No known key found for this signature in database
GPG key ID: C2A3B36E841A91E6
16 changed files with 649 additions and 444 deletions

View file

@ -1,7 +1,7 @@
use std::collections::{BTreeSet, HashSet};
use actix_web::{web, HttpResponse};
use actix_web_macros::{delete, get, post, put};
use actix_web::{delete, get, post, put};
use indexmap::IndexMap;
use meilisearch_core::update;
use serde::Deserialize;

View file

@ -1,5 +1,5 @@
use actix_web::{web, HttpResponse};
use actix_web_macros::{get, put};
use actix_web::{get, put};
use serde::Deserialize;
use crate::error::{Error, ResponseError};

View file

@ -1,5 +1,5 @@
use actix_web::{web, HttpResponse};
use actix_web_macros::{delete, get, post, put};
use actix_web::{delete, get, post, put};
use chrono::{DateTime, Utc};
use log::error;
use rand::seq::SliceRandom;

View file

@ -1,6 +1,6 @@
use actix_web::web;
use actix_web::HttpResponse;
use actix_web_macros::get;
use actix_web::get;
use serde::Serialize;
use crate::helpers::Authentication;

View file

@ -3,7 +3,7 @@ use std::collections::{HashSet, HashMap};
use log::warn;
use actix_web::web;
use actix_web::HttpResponse;
use actix_web_macros::{get, post};
use actix_web::{get, post};
use serde::{Deserialize, Serialize};
use serde_json::Value;

View file

@ -1,5 +1,5 @@
use actix_web::{web, HttpResponse};
use actix_web_macros::{delete, get, post};
use actix_web::{delete, get, post};
use meilisearch_core::settings::{Settings, SettingsUpdate, UpdateState, DEFAULT_RANKING_RULES};
use meilisearch_schema::Schema;
use std::collections::{BTreeMap, BTreeSet, HashSet};

View file

@ -2,7 +2,7 @@ use std::collections::HashMap;
use actix_web::web;
use actix_web::HttpResponse;
use actix_web_macros::get;
use actix_web::get;
use chrono::{DateTime, Utc};
use log::error;
use serde::Serialize;

View file

@ -1,5 +1,5 @@
use actix_web::{web, HttpResponse};
use actix_web_macros::{delete, get, post};
use actix_web::{delete, get, post};
use meilisearch_core::settings::{SettingsUpdate, UpdateState};
use std::collections::BTreeSet;

View file

@ -1,7 +1,7 @@
use std::collections::BTreeMap;
use actix_web::{web, HttpResponse};
use actix_web_macros::{delete, get, post};
use actix_web::{delete, get, post};
use indexmap::IndexMap;
use meilisearch_core::settings::{SettingsUpdate, UpdateState};