mirror of https://github.com/rwf2/Rocket.git
Remove use of specialization in http.
This commit is contained in:
parent
6ed4c098f1
commit
99a864008c
|
@ -1,4 +1,3 @@
|
||||||
#![feature(specialization)]
|
|
||||||
#![feature(proc_macro_hygiene)]
|
#![feature(proc_macro_hygiene)]
|
||||||
#![feature(crate_visibility_modifier)]
|
#![feature(crate_visibility_modifier)]
|
||||||
#![recursion_limit="512"]
|
#![recursion_limit="512"]
|
||||||
|
|
|
@ -401,13 +401,6 @@ impl AsRef<[u8]> for RawStr {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ToString for RawStr {
|
|
||||||
#[inline(always)]
|
|
||||||
fn to_string(&self) -> String {
|
|
||||||
String::from(self.as_str())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Deref for RawStr {
|
impl Deref for RawStr {
|
||||||
type Target = str;
|
type Target = str;
|
||||||
|
|
||||||
|
|
|
@ -277,13 +277,6 @@ impl<'s, 'c: 's> From<Cow<'c, str>> for Uncased<'s> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'s, 'c: 's, T: Into<Cow<'c, str>>> From<T> for Uncased<'s> {
|
|
||||||
#[inline(always)]
|
|
||||||
default fn from(string: T) -> Self {
|
|
||||||
Uncased::new(string)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'b> PartialOrd<Uncased<'b>> for Uncased<'_> {
|
impl<'b> PartialOrd<Uncased<'b>> for Uncased<'_> {
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
fn partial_cmp(&self, other: &Uncased<'b>) -> Option<Ordering> {
|
fn partial_cmp(&self, other: &Uncased<'b>) -> Option<Ordering> {
|
||||||
|
|
Loading…
Reference in New Issue