1
0
mirror of https://github.com/actix/examples synced 2024-11-23 14:31:07 +01:00

chore: remove redundant imports

This commit is contained in:
Rob Ede 2024-02-20 03:29:10 +00:00
parent dfde2ea718
commit bfed118301
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
8 changed files with 6 additions and 9 deletions

View File

@ -1,5 +1,3 @@
use std::convert::From;
use actix_web::{error::ResponseError, HttpResponse};
use derive_more::Display;
use diesel::result::{DatabaseErrorKind, Error as DBError};

View File

@ -25,7 +25,7 @@ async fn main() -> std::io::Result<()> {
#[cfg(test)]
mod tests {
use actix_web::{body::to_bytes, dev::Service, http, test, web, App, Error};
use actix_web::{body::to_bytes, dev::Service, http, test, Error};
use super::*;

View File

@ -2,7 +2,6 @@ use actix_web::{
test::{call_and_read_body, call_and_read_body_json, init_service, TestRequest},
web::Bytes,
};
use mongodb::Client;
use super::*;

View File

@ -16,7 +16,7 @@ use std::io;
use actix_web::{middleware, web, App, Error as AWError, HttpResponse, HttpServer};
use futures_util::future::join_all;
use r2d2_sqlite::{self, SqliteConnectionManager};
use r2d2_sqlite::SqliteConnectionManager;
mod db;
use db::{Pool, Queries};

View File

@ -55,7 +55,7 @@ async fn main() -> std::io::Result<()> {
#[cfg(test)]
mod tests {
use actix_web::{body::to_bytes, dev::Service, http, test, web, App};
use actix_web::{body::to_bytes, dev::Service, http, test};
use super::*;

View File

@ -1,4 +1,4 @@
use actix::{fut, prelude::*};
use actix::prelude::*;
use actix_broker::BrokerIssue;
use actix_web_actors::ws;

View File

@ -5,7 +5,7 @@
use std::collections::{HashMap, HashSet};
use actix::prelude::*;
use rand::{self, rngs::ThreadRng, Rng};
use rand::{rngs::ThreadRng, Rng};
use crate::session;

View File

@ -11,7 +11,7 @@ use std::{
};
use actix::prelude::*;
use rand::{self, rngs::ThreadRng, Rng};
use rand::{rngs::ThreadRng, Rng};
/// Chat server sends this messages to session
#[derive(Message)]