mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
chore: fmt
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
use actix_web::{web, Error, HttpResponse};
|
||||
use actix_web::{Error, HttpResponse, web};
|
||||
|
||||
use crate::common::{Part, Product};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
use actix_web::{web, Error, HttpResponse};
|
||||
use actix_web::{Error, HttpResponse, web};
|
||||
|
||||
use crate::common::{Part, Product};
|
||||
|
||||
@ -21,9 +21,10 @@ pub async fn remove_product(_id: web::Path<String>) -> Result<HttpResponse, Erro
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use actix_web::{
|
||||
App,
|
||||
dev::Service,
|
||||
http::{header, StatusCode},
|
||||
test, App,
|
||||
http::{StatusCode, header},
|
||||
test,
|
||||
};
|
||||
|
||||
use crate::app_config::config_app;
|
||||
|
@ -1,4 +1,4 @@
|
||||
use actix_web::{middleware, App, HttpServer};
|
||||
use actix_web::{App, HttpServer, middleware};
|
||||
use nested_routing::app_config::config_app;
|
||||
|
||||
#[actix_web::main]
|
||||
|
Reference in New Issue
Block a user