Skip to content

Commit

Permalink
Revert "implement From<Vec<char>> and From<&'a [char]> for String"
Browse files Browse the repository at this point in the history
This reverts commit ac73335.
  • Loading branch information
brson committed Sep 23, 2016
1 parent 86a686c commit 2e02803
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/libcollections/string.rs
Expand Up @@ -1902,26 +1902,6 @@ impl Into<Vec<u8>> for String {
}
}

#[stable(feature = "stringfromchars", since = "1.12.0")]
impl<'a> From<&'a [char]> for String {
#[inline]
fn from(v: &'a [char]) -> String {
let mut s = String::with_capacity(v.len());
for c in v {
s.push(*c);
}
s
}
}

#[stable(feature = "stringfromchars", since = "1.12.0")]
impl From<Vec<char>> for String {
#[inline]
fn from(v: Vec<char>) -> String {
String::from(v.as_slice())
}
}

#[stable(feature = "rust1", since = "1.0.0")]
impl fmt::Write for String {
#[inline]
Expand Down

0 comments on commit 2e02803

Please sign in to comment.