mirror of https://github.com/rwf2/Rocket.git
Remove use of now unneeded 'AsciiExt' trait.
This commit is contained in:
parent
028a00becc
commit
308dbd76a0
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue