mirror of
https://github.com/actix/examples
synced 2025-06-26 09:17:41 +02:00
chore: fmt
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
#[macro_use]
|
||||
extern crate diesel;
|
||||
|
||||
use actix_web::{error, get, middleware, post, web, App, HttpResponse, HttpServer, Responder};
|
||||
use actix_web::{App, HttpResponse, HttpServer, Responder, error, get, middleware, post, web};
|
||||
use diesel::{prelude::*, r2d2};
|
||||
use uuid::Uuid;
|
||||
|
||||
|
@ -4,9 +4,9 @@ mod model;
|
||||
#[cfg(test)]
|
||||
mod test;
|
||||
|
||||
use actix_web::{get, post, web, App, HttpResponse, HttpServer};
|
||||
use actix_web::{App, HttpResponse, HttpServer, get, post, web};
|
||||
use model::User;
|
||||
use mongodb::{bson::doc, options::IndexOptions, Client, Collection, IndexModel};
|
||||
use mongodb::{Client, Collection, IndexModel, bson::doc, options::IndexOptions};
|
||||
|
||||
const DB_NAME: &str = "myApp";
|
||||
const COLL_NAME: &str = "users";
|
||||
|
@ -1,5 +1,5 @@
|
||||
use actix_web::{
|
||||
test::{call_and_read_body, call_and_read_body_json, init_service, TestRequest},
|
||||
test::{TestRequest, call_and_read_body, call_and_read_body_json, init_service},
|
||||
web::Bytes,
|
||||
};
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
use std::{env, io};
|
||||
|
||||
use actix_web::{web, App, HttpServer};
|
||||
use actix_web::{App, HttpServer, web};
|
||||
|
||||
mod models;
|
||||
mod persistence;
|
||||
|
@ -1,4 +1,4 @@
|
||||
use actix_web::{get, post, web, HttpResponse, Responder};
|
||||
use actix_web::{HttpResponse, Responder, get, post, web};
|
||||
|
||||
use crate::{
|
||||
models::{BankData, BranchData, CustomerData, TellerData},
|
||||
|
@ -1,4 +1,4 @@
|
||||
use actix_web::{web, App, Error, HttpResponse, HttpServer};
|
||||
use actix_web::{App, Error, HttpResponse, HttpServer, web};
|
||||
use confik::{Configuration as _, EnvSource};
|
||||
use deadpool_postgres::{Client, Pool};
|
||||
use dotenvy::dotenv;
|
||||
|
@ -1,6 +1,6 @@
|
||||
use std::io;
|
||||
|
||||
use actix_web::{error, middleware, web, App, HttpResponse, HttpServer, Responder};
|
||||
use actix_web::{App, HttpResponse, HttpServer, Responder, error, middleware, web};
|
||||
use serde::Deserialize;
|
||||
|
||||
async fn get_from_cache(redis: web::Data<redis::Client>) -> actix_web::Result<impl Responder> {
|
||||
|
Reference in New Issue
Block a user