1
0
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:
Yuki Okushi
2020-12-01 10:21:56 +09:00
committed by GitHub
parent 699a98493b
commit f970d90894
13 changed files with 9 additions and 14 deletions

View File

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

View File

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

View File

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

View File

@ -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};

View File

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

View File

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