Blob Blame History Raw
From dfd4936eb09ecc6cd5c5d79254aa6fdfe35a4667 Mon Sep 17 00:00:00 2001
From: Josh Stone <jistone@redhat.com>
Date: Wed, 16 May 2018 16:29:24 -0700
Subject: [PATCH] Allow the deprecated AsciiExt

---
 src/ascii.rs | 2 +-
 src/lib.rs   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ascii.rs b/src/ascii.rs
index 745ea04bbcec..885e2703fed9 100644
--- a/src/ascii.rs
+++ b/src/ascii.rs
@@ -1,4 +1,4 @@
-#[allow(unused)]
+#[allow(deprecated, unused)]
 use std::ascii::AsciiExt;
 #[cfg(__unicase__iter_cmp)]
 use std::cmp::Ordering;
diff --git a/src/lib.rs b/src/lib.rs
index 5290d50cbde7..5998fb1b8ccc 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -111,7 +111,7 @@ impl<S: AsRef<str>> UniCase<S> {
     ///
     /// Note: This scans the text to determine if it is all ASCII or not.
     pub fn new(s: S) -> UniCase<S> {
-        #[allow(unused)]
+        #[allow(deprecated, unused)]
         use std::ascii::AsciiExt;
         if s.as_ref().is_ascii() {
             UniCase(Encoding::Ascii(Ascii(s)))
-- 
2.17.0