From 42c21a1c00090e5c83b8a70ec04af57519342811 Mon Sep 17 00:00:00 2001 From: Shaun Mangelsdorf Date: Tue, 5 Dec 2017 18:22:36 +1000 Subject: [PATCH] Resolve compiler warnings on nightly rust --- src/http/header/x_content_type_options.rs | 2 ++ src/http/header/x_frame_options.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/http/header/x_content_type_options.rs b/src/http/header/x_content_type_options.rs index e056253cc..46638166e 100644 --- a/src/http/header/x_content_type_options.rs +++ b/src/http/header/x_content_type_options.rs @@ -1,6 +1,8 @@ //! Define the X-Content-Type-Options header. use std::fmt; +// TODO: Remove when this import isn't required in stable anymore. +#[allow(unused_imports)] use std::ascii::AsciiExt; use hyper; diff --git a/src/http/header/x_frame_options.rs b/src/http/header/x_frame_options.rs index ff603bc99..092fd14f2 100644 --- a/src/http/header/x_frame_options.rs +++ b/src/http/header/x_frame_options.rs @@ -2,6 +2,8 @@ use std::fmt; use std::str::FromStr; +// TODO: Remove when this import isn't required in stable anymore. +#[allow(unused_imports)] use std::ascii::AsciiExt; use hyper;