From 8a22559cac64d958f7d4be4c83334dd17509c5de Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Sun, 16 Oct 2022 21:20:54 +0100 Subject: [PATCH] fmt --- databases/diesel/src/main.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/databases/diesel/src/main.rs b/databases/diesel/src/main.rs index 28edd0e..fc621a7 100644 --- a/databases/diesel/src/main.rs +++ b/databases/diesel/src/main.rs @@ -7,8 +7,10 @@ extern crate diesel; use actix_web::{get, middleware, post, web, App, Error, HttpResponse, HttpServer}; -use diesel::prelude::*; -use diesel::r2d2::{self, ConnectionManager}; +use diesel::{ + prelude::*, + r2d2::{self, ConnectionManager}, +}; use uuid::Uuid; mod actions; @@ -88,9 +90,10 @@ async fn main() -> std::io::Result<()> { #[cfg(test)] mod tests { - use super::*; use actix_web::test; + use super::*; + #[actix_web::test] async fn user_routes() { std::env::set_var("RUST_LOG", "actix_web=debug");