From 92369411cc3c415d732e7691cc606a9cc69e4772 Mon Sep 17 00:00:00 2001 From: thanadolps Date: Sun, 25 Apr 2021 10:57:39 +0700 Subject: [PATCH] add #[allow(unused_imports)] to log --- src/fairing.rs | 3 ++- src/lib.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fairing.rs b/src/fairing.rs index 6b2f66c..ea49ee6 100644 --- a/src/fairing.rs +++ b/src/fairing.rs @@ -1,8 +1,9 @@ //! Fairing implementation +#[allow(unused_imports)] use ::log::{error, info}; 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::{ actual_request_response, origin, preflight_response, request_headers, validate, Cors, Error, diff --git a/src/lib.rs b/src/lib.rs index 77672fc..9e9ff56 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -280,12 +280,13 @@ use std::marker::PhantomData; use std::ops::Deref; use std::str::FromStr; +#[allow(unused_imports)] use ::log::{debug, error, info}; use regex::RegexSet; use rocket::http::{self, Status}; use rocket::request::{FromRequest, Request}; use rocket::response; -use rocket::{debug_, error_, info_, log_, outcome::Outcome, State}; +use rocket::{debug_, error_, info_, outcome::Outcome, State}; #[cfg(feature = "serialization")] use serde_derive::{Deserialize, Serialize};