Remove use of now unneeded 'AsciiExt' trait.

This commit is contained in:
Sergio Benitez 2017-11-09 10:08:15 +01:00
parent 028a00becc
commit 308dbd76a0
3 changed files with 2 additions and 28 deletions

View File

@ -8,8 +8,8 @@ use yansi::Color::{Red, Yellow, Blue, White};
use version_check::{supports_features, is_min_version, is_min_date};
// Specifies the minimum nightly version needed to compile Rocket.
const MIN_DATE: &'static str = "2017-09-13";
const MIN_VERSION: &'static str = "1.22.0-nightly";
const MIN_DATE: &'static str = "2017-11-07";
const MIN_VERSION: &'static str = "1.23.0-nightly";
fn main() {
let ok_channel = supports_features();

View File

@ -2,7 +2,6 @@ use std::ops::{Deref, DerefMut};
use std::borrow::Cow;
use std::convert::AsRef;
use std::cmp::Ordering;
use std::ascii::AsciiExt;
use std::str::Utf8Error;
use std::fmt;
@ -330,30 +329,6 @@ impl ToString for RawStr {
}
}
impl AsciiExt for RawStr {
type Owned = String;
#[inline(always)]
fn is_ascii(&self) -> bool { (self as &str).is_ascii() }
#[inline(always)]
fn to_ascii_uppercase(&self) -> String { (self as &str).to_ascii_uppercase() }
#[inline(always)]
fn to_ascii_lowercase(&self) -> String { (self as &str).to_ascii_lowercase() }
#[inline(always)]
fn make_ascii_uppercase(&mut self) { (self as &mut str).make_ascii_uppercase() }
#[inline(always)]
fn make_ascii_lowercase(&mut self) { (self as &mut str).make_ascii_lowercase() }
#[inline(always)]
fn eq_ignore_ascii_case(&self, o: &RawStr) -> bool {
(self as &str).eq_ignore_ascii_case(o as &str)
}
}
impl Deref for RawStr {
type Target = str;

View File

@ -8,7 +8,6 @@ use std::ops::Deref;
use std::borrow::{Cow, Borrow};
use std::cmp::Ordering;
use std::hash::{Hash, Hasher};
use std::ascii::AsciiExt;
use std::fmt;
/// A reference to an uncased (case-preserving) ASCII string. This is typically