It is deprecated since 1.26.0 if the inherent methods, that are stable since 1.23.0, want to be relied on.
@@ -15,8 +15,6 @@
use std::u32;
use std::char;
-#[allow(unused_imports, deprecated)]
-use std::ascii::AsciiExt;
// Bootstring parameters for Punycode
static BASE: u32 = 36;
@@ -11,8 +11,6 @@
use self::Mapping::*;
use punycode;
use std::cmp::Ordering::{Equal, Less, Greater};
use unicode_bidi::{BidiClass, bidi_class};
use unicode_normalization::UnicodeNormalization;
@@ -32,7 +32,6 @@
//! assert_eq!(utf8_percent_encode("foo bar?", DEFAULT_ENCODE_SET).to_string(), "foo%20bar%3F");
//! ```
use std::borrow::Cow;
use std::fmt;
use std::slice;
@@ -55,7 +55,6 @@ pub fn parse_with_encoding<'a>(input: &'a [u8],
encoding_override: Option<::encoding::EncodingRef>,
use_charset: bool)
-> Result<Parse<'a>, ()> {
- use std::ascii::AsciiExt;
let mut encoding = EncodingOverride::from_opt_encoding(encoding_override);
if !(encoding.is_utf8() || input.is_ascii()) {
@@ -6,9 +6,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-
use std::error::Error;
use std::fmt::{self, Formatter, Write};
use std::str;
@@ -11,7 +11,6 @@
#[macro_use]
extern crate url;
use std::cell::{Cell, RefCell};
use std::net::{Ipv4Addr, Ipv6Addr};