refactor(fmt): delete String::from() format in favor of .to_string()/to_owned()

This commit is contained in:
VC
2022-04-24 14:20:45 +02:00
parent 734f03f5a9
commit 905793af72
5 changed files with 27 additions and 27 deletions

View File

@@ -8,7 +8,7 @@ pub struct ScootalooError {
impl ScootalooError {
pub fn new(msg: &str) -> ScootalooError {
ScootalooError {
details: String::from(msg),
details: msg.to_string(),
}
}
}