Convert Intos to Froms.
This commit is contained in:
parent
445077963c
commit
5a97036b69
4 changed files with 12 additions and 12 deletions
|
@ -2009,9 +2009,9 @@ impl From<Box<str>> for String {
|
|||
}
|
||||
|
||||
#[stable(feature = "box_from_str", since = "1.18.0")]
|
||||
impl Into<Box<str>> for String {
|
||||
fn into(self) -> Box<str> {
|
||||
self.into_boxed_str()
|
||||
impl From<String> for Box<str> {
|
||||
fn from(s: String) -> Box<str> {
|
||||
s.into_boxed_str()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue