Skip to content

Commit

Permalink
Remove support for Box<str>.
Browse files Browse the repository at this point in the history
This was necessary because CI tests support for Rust 1.3.0, which lacked
an `impl AsRef<str> for Box<str>`. Adding support for this would require
adding a new feature gate or something of this sort.
  • Loading branch information
Nico Madysa committed Feb 21, 2019
1 parent e489e2e commit de8a4d6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,16 +235,13 @@ impl<S: AsRef<str>> From<S> for UniCase<S> {

from_impl!(&'a str => Cow<'a, str>);
from_impl!(String => Cow<'a, str>);
from_impl!(String => Box<str>);
from_impl!(&'a str => String);
from_impl!(Cow<'a, str> => String);
from_impl!(Box<str> => String);
from_impl!(Cow<'a, str> => String; into_owned);
from_impl!(&'a String => &'a str; as_ref);

into_impl!(&'a str);
into_impl!(String);
into_impl!(Cow<'a, str>);
into_impl!(Box<str>);

#[cfg(__unicase__iter_cmp)]
impl<T: AsRef<str>> PartialOrd for UniCase<T> {
Expand Down

0 comments on commit de8a4d6

Please sign in to comment.