1
0
mirror of https://github.com/actix/examples synced 2024-11-23 22:41:07 +01:00
This commit is contained in:
Rob Ede 2022-10-16 21:20:54 +01:00
parent 7fd6e17459
commit 8a22559cac
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

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