Revert "implement From<Vec<char>> and From<&'a [char]> for String"
This reverts commit ac73335f2f.
This commit is contained in:
parent
86a686c4f7
commit
2e02803c73
1 changed files with 0 additions and 20 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue