mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 18:37:41 +02:00
Use re-exported bytes
items from instead of using them directly (#139)
This commit is contained in:
@ -22,7 +22,6 @@ path = "src/lib.rs"
|
||||
[dependencies]
|
||||
actix-web = { version = "3.0.0", default_features = false }
|
||||
base64 = "0.13"
|
||||
bytes = "0.5"
|
||||
futures-util = { version = "0.3", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
|
@ -3,7 +3,7 @@ use std::fmt;
|
||||
use std::str;
|
||||
|
||||
use actix_web::http::header::{HeaderValue, IntoHeaderValue, InvalidHeaderValue};
|
||||
use bytes::{BufMut, BytesMut};
|
||||
use actix_web::web::{BufMut, BytesMut};
|
||||
|
||||
use crate::headers::authorization::errors::ParseError;
|
||||
use crate::headers::authorization::Scheme;
|
||||
|
@ -2,7 +2,7 @@ use std::borrow::Cow;
|
||||
use std::fmt;
|
||||
|
||||
use actix_web::http::header::{HeaderValue, IntoHeaderValue, InvalidHeaderValue};
|
||||
use bytes::{BufMut, BytesMut};
|
||||
use actix_web::web::{BufMut, BytesMut};
|
||||
|
||||
use crate::headers::authorization::errors::ParseError;
|
||||
use crate::headers::authorization::scheme::Scheme;
|
||||
|
@ -6,7 +6,7 @@ use std::fmt;
|
||||
use std::str;
|
||||
|
||||
use actix_web::http::header::{HeaderValue, IntoHeaderValue, InvalidHeaderValue};
|
||||
use bytes::{BufMut, Bytes, BytesMut};
|
||||
use actix_web::web::{BufMut, Bytes, BytesMut};
|
||||
|
||||
use super::Challenge;
|
||||
use crate::utils;
|
||||
|
@ -3,7 +3,7 @@ use std::fmt;
|
||||
use std::str;
|
||||
|
||||
use actix_web::http::header::{HeaderValue, IntoHeaderValue, InvalidHeaderValue};
|
||||
use bytes::{BufMut, Bytes, BytesMut};
|
||||
use actix_web::web::{BufMut, Bytes, BytesMut};
|
||||
|
||||
use super::super::Challenge;
|
||||
use super::{BearerBuilder, Error};
|
||||
|
@ -1,7 +1,7 @@
|
||||
use std::fmt::{Debug, Display};
|
||||
|
||||
use actix_web::http::header::IntoHeaderValue;
|
||||
use bytes::Bytes;
|
||||
use actix_web::web::Bytes;
|
||||
|
||||
pub mod basic;
|
||||
pub mod bearer;
|
||||
|
@ -1,6 +1,6 @@
|
||||
use std::str;
|
||||
|
||||
use bytes::BytesMut;
|
||||
use actix_web::web::BytesMut;
|
||||
|
||||
enum State {
|
||||
YieldStr,
|
||||
@ -55,7 +55,7 @@ pub fn put_quoted(buf: &mut BytesMut, value: &str) {
|
||||
mod tests {
|
||||
use std::str;
|
||||
|
||||
use bytes::BytesMut;
|
||||
use actix_web::web::BytesMut;
|
||||
|
||||
use super::put_quoted;
|
||||
|
||||
|
Reference in New Issue
Block a user