mirror of https://github.com/fafhrd91/actix-web
Use prelude import
This commit is contained in:
parent
74f14a906e
commit
cc166fb30e
|
@ -3,7 +3,7 @@ use std::{
|
||||||
fmt,
|
fmt,
|
||||||
};
|
};
|
||||||
|
|
||||||
use base64::{prelude::BASE64_STANDARD, Engine};
|
use base64::prelude::*;
|
||||||
use tracing::error;
|
use tracing::error;
|
||||||
|
|
||||||
/// Operation codes defined in [RFC 6455 §11.8].
|
/// Operation codes defined in [RFC 6455 §11.8].
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use std::{convert::TryFrom, fmt, net::IpAddr, rc::Rc, time::Duration};
|
use std::{convert::TryFrom, fmt, net::IpAddr, rc::Rc, time::Duration};
|
||||||
|
|
||||||
use base64::{prelude::BASE64_STANDARD, Engine};
|
use base64::prelude::*;
|
||||||
|
|
||||||
use actix_http::{
|
use actix_http::{
|
||||||
error::HttpError,
|
error::HttpError,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use std::{convert::TryFrom, fmt, net, rc::Rc, time::Duration};
|
use std::{convert::TryFrom, fmt, net, rc::Rc, time::Duration};
|
||||||
|
|
||||||
use base64::{prelude::BASE64_STANDARD, Engine};
|
use base64::prelude::*;
|
||||||
use bytes::Bytes;
|
use bytes::Bytes;
|
||||||
use futures_core::Stream;
|
use futures_core::Stream;
|
||||||
use serde::Serialize;
|
use serde::Serialize;
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
use std::{convert::TryFrom, fmt, net::SocketAddr, str};
|
use std::{convert::TryFrom, fmt, net::SocketAddr, str};
|
||||||
|
|
||||||
use base64::{prelude::BASE64_STANDARD, Engine};
|
use base64::prelude::*;
|
||||||
|
|
||||||
use actix_codec::Framed;
|
use actix_codec::Framed;
|
||||||
use actix_http::{ws, Payload, RequestHead};
|
use actix_http::{ws, Payload, RequestHead};
|
||||||
|
|
|
@ -13,7 +13,7 @@ use std::{
|
||||||
};
|
};
|
||||||
|
|
||||||
use actix_utils::future::ok;
|
use actix_utils::future::ok;
|
||||||
use base64::{prelude::BASE64_STANDARD, Engine};
|
use base64::prelude::*;
|
||||||
use bytes::Bytes;
|
use bytes::Bytes;
|
||||||
use cookie::Cookie;
|
use cookie::Cookie;
|
||||||
use futures_util::stream;
|
use futures_util::stream;
|
||||||
|
|
Loading…
Reference in New Issue