Replace usage of String::from_str with String:from

This commit is contained in:
Simon Sapin
2015-06-08 16:55:35 +02:00
parent 2ff42435c2
commit c160192f5f
29 changed files with 105 additions and 106 deletions

View File

@@ -121,7 +121,7 @@ impl From<String> for Box<Error + Send + Sync> {
#[stable(feature = "rust1", since = "1.0.0")]
impl<'a, 'b> From<&'b str> for Box<Error + Send + Sync + 'a> {
fn from(err: &'b str) -> Box<Error + Send + Sync + 'a> {
From::from(String::from_str(err))
From::from(String::from(err))
}
}