add #[allow(unused_imports)] to log

This commit is contained in:
thanadolps 2021-04-25 10:57:39 +07:00
parent fb57ebe3fe
commit 92369411cc
2 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,9 @@
//! Fairing implementation //! Fairing implementation
#[allow(unused_imports)]
use ::log::{error, info}; use ::log::{error, info};
use rocket::http::{self, uri::Origin, Status}; use rocket::http::{self, uri::Origin, Status};
use rocket::{self, error_, info_, log_, outcome::Outcome, Request}; use rocket::{self, error_, info_, outcome::Outcome, Request};
use crate::{ use crate::{
actual_request_response, origin, preflight_response, request_headers, validate, Cors, Error, actual_request_response, origin, preflight_response, request_headers, validate, Cors, Error,

View File

@ -280,12 +280,13 @@ use std::marker::PhantomData;
use std::ops::Deref; use std::ops::Deref;
use std::str::FromStr; use std::str::FromStr;
#[allow(unused_imports)]
use ::log::{debug, error, info}; use ::log::{debug, error, info};
use regex::RegexSet; use regex::RegexSet;
use rocket::http::{self, Status}; use rocket::http::{self, Status};
use rocket::request::{FromRequest, Request}; use rocket::request::{FromRequest, Request};
use rocket::response; use rocket::response;
use rocket::{debug_, error_, info_, log_, outcome::Outcome, State}; use rocket::{debug_, error_, info_, outcome::Outcome, State};
#[cfg(feature = "serialization")] #[cfg(feature = "serialization")]
use serde_derive::{Deserialize, Serialize}; use serde_derive::{Deserialize, Serialize};