From 99a864008c665a8de95053893dd2cff547e14ddc Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Mon, 9 Sep 2019 16:45:03 -0700 Subject: [PATCH] Remove use of specialization in http. --- core/http/src/lib.rs | 1 - core/http/src/raw_str.rs | 7 ------- core/http/src/uncased.rs | 7 ------- 3 files changed, 15 deletions(-) diff --git a/core/http/src/lib.rs b/core/http/src/lib.rs index 535bbda8..4193a512 100644 --- a/core/http/src/lib.rs +++ b/core/http/src/lib.rs @@ -1,4 +1,3 @@ -#![feature(specialization)] #![feature(proc_macro_hygiene)] #![feature(crate_visibility_modifier)] #![recursion_limit="512"] diff --git a/core/http/src/raw_str.rs b/core/http/src/raw_str.rs index 2fe6f9f5..b5517e6b 100644 --- a/core/http/src/raw_str.rs +++ b/core/http/src/raw_str.rs @@ -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 { type Target = str; diff --git a/core/http/src/uncased.rs b/core/http/src/uncased.rs index ee9d7ac2..de60cfae 100644 --- a/core/http/src/uncased.rs +++ b/core/http/src/uncased.rs @@ -277,13 +277,6 @@ impl<'s, 'c: 's> From> for Uncased<'s> { } } -impl<'s, 'c: 's, T: Into>> From for Uncased<'s> { - #[inline(always)] - default fn from(string: T) -> Self { - Uncased::new(string) - } -} - impl<'b> PartialOrd> for Uncased<'_> { #[inline(always)] fn partial_cmp(&self, other: &Uncased<'b>) -> Option {