From fb57ebe3fe64cbce5b07319d4c4287dcbf22aebc Mon Sep 17 00:00:00 2001 From: thanadolps Date: Sun, 25 Apr 2021 10:43:08 +0700 Subject: [PATCH] Revert "Remove unused import" This reverts commit 69db6d53 --- src/fairing.rs | 3 ++- src/lib.rs | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fairing.rs b/src/fairing.rs index 92ac165..6b2f66c 100644 --- a/src/fairing.rs +++ b/src/fairing.rs @@ -1,7 +1,8 @@ //! Fairing implementation +use ::log::{error, info}; use rocket::http::{self, uri::Origin, Status}; -use rocket::{self, error_, info_, outcome::Outcome, Request}; +use rocket::{self, error_, info_, log_, 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 135b333..77672fc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -280,13 +280,12 @@ use std::marker::PhantomData; use std::ops::Deref; use std::str::FromStr; - -use ::log::info; +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_, outcome::Outcome, State}; +use rocket::{debug_, error_, info_, log_, outcome::Outcome, State}; #[cfg(feature = "serialization")] use serde_derive::{Deserialize, Serialize};