mirror of
https://github.com/actix/examples
synced 2024-11-23 22:41:07 +01:00
fmt
This commit is contained in:
parent
7fd6e17459
commit
8a22559cac
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user