mirror of
https://github.com/actix/examples
synced 2025-02-20 00:14:21 +01:00
fmt
This commit is contained in:
parent
7fd6e17459
commit
8a22559cac
@ -7,8 +7,10 @@
|
|||||||
extern crate diesel;
|
extern crate diesel;
|
||||||
|
|
||||||
use actix_web::{get, middleware, post, web, App, Error, HttpResponse, HttpServer};
|
use actix_web::{get, middleware, post, web, App, Error, HttpResponse, HttpServer};
|
||||||
use diesel::prelude::*;
|
use diesel::{
|
||||||
use diesel::r2d2::{self, ConnectionManager};
|
prelude::*,
|
||||||
|
r2d2::{self, ConnectionManager},
|
||||||
|
};
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
mod actions;
|
mod actions;
|
||||||
@ -88,9 +90,10 @@ async fn main() -> std::io::Result<()> {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
|
||||||
use actix_web::test;
|
use actix_web::test;
|
||||||
|
|
||||||
|
use super::*;
|
||||||
|
|
||||||
#[actix_web::test]
|
#[actix_web::test]
|
||||||
async fn user_routes() {
|
async fn user_routes() {
|
||||||
std::env::set_var("RUST_LOG", "actix_web=debug");
|
std::env::set_var("RUST_LOG", "actix_web=debug");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user