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::{middleware, web, App, HttpRequest, HttpResponse, HttpServer, Responder, Result};
|
||||
use actix_web::{App, HttpRequest, HttpResponse, HttpServer, Responder, Result, middleware, web};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
struct AppState {
|
||||
@ -74,8 +74,8 @@ mod tests {
|
||||
body::to_bytes,
|
||||
dev::ServiceResponse,
|
||||
http::{
|
||||
header::{HeaderValue, CONTENT_TYPE},
|
||||
StatusCode,
|
||||
header::{CONTENT_TYPE, HeaderValue},
|
||||
},
|
||||
test::{self, TestRequest},
|
||||
web::{Bytes, Form},
|
||||
|
@ -1,8 +1,8 @@
|
||||
use std::env;
|
||||
|
||||
use aws_config::SdkConfig as AwsConfig;
|
||||
use aws_sdk_s3::{primitives::ByteStream, Client as S3Client};
|
||||
use futures_util::{stream, StreamExt as _};
|
||||
use aws_sdk_s3::{Client as S3Client, primitives::ByteStream};
|
||||
use futures_util::{StreamExt as _, stream};
|
||||
use tokio::{fs, io::AsyncReadExt as _};
|
||||
|
||||
use crate::{TempFile, UploadedFile};
|
||||
|
@ -1,14 +1,14 @@
|
||||
use std::{fs, io};
|
||||
|
||||
use actix_multipart::form::{tempfile::TempFile, text::Text, MultipartForm};
|
||||
use actix_multipart::form::{MultipartForm, tempfile::TempFile, text::Text};
|
||||
use actix_web::{
|
||||
body::SizedStream, delete, error, get, http::Method, middleware::Logger, post, route, web, App,
|
||||
Error, HttpResponse, HttpServer, Responder,
|
||||
App, Error, HttpResponse, HttpServer, Responder, body::SizedStream, delete, error, get,
|
||||
http::Method, middleware::Logger, post, route, web,
|
||||
};
|
||||
use actix_web_lab::extract::Path;
|
||||
use aws_config::{meta::region::RegionProviderChain, BehaviorVersion};
|
||||
use aws_config::{BehaviorVersion, meta::region::RegionProviderChain};
|
||||
use dotenvy::dotenv;
|
||||
use futures_util::{stream, StreamExt as _};
|
||||
use futures_util::{StreamExt as _, stream};
|
||||
use serde_json::json;
|
||||
use tokio_util::io::ReaderStream;
|
||||
|
||||
|
@ -1,13 +1,13 @@
|
||||
use std::io::Write;
|
||||
|
||||
use actix_multipart::{
|
||||
form::{
|
||||
tempfile::{TempFile, TempFileConfig},
|
||||
MultipartForm,
|
||||
},
|
||||
Multipart,
|
||||
form::{
|
||||
MultipartForm,
|
||||
tempfile::{TempFile, TempFileConfig},
|
||||
},
|
||||
};
|
||||
use actix_web::{middleware, web, App, Error, HttpResponse, HttpServer, Responder};
|
||||
use actix_web::{App, Error, HttpResponse, HttpServer, Responder, middleware, web};
|
||||
use futures_util::TryStreamExt as _;
|
||||
use uuid::Uuid;
|
||||
|
||||
|
Reference in New Issue
Block a user