1
0
mirror of https://github.com/actix/examples synced 2025-06-26 09:17:41 +02:00

chore: fmt

This commit is contained in:
Rob Ede
2025-03-21 06:07:31 +00:00
parent a7527d72f3
commit 04f8cba71b
98 changed files with 828 additions and 650 deletions

View File

@ -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;

View File

@ -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";

View File

@ -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,
};

View File

@ -1,6 +1,6 @@
use std::{env, io};
use actix_web::{web, App, HttpServer};
use actix_web::{App, HttpServer, web};
mod models;
mod persistence;

View File

@ -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},

View File

@ -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;

View File

@ -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> {