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

@@ -96,7 +96,7 @@ pub async fn run(config: Config) {
},
};
let mastodon_media_ids = match mastodon.media(Cow::from(String::from(&local_tweet_media_path))) {
let mastodon_media_ids = match mastodon.media(Cow::from(local_tweet_media_path.to_owned())) {
Ok(m) => {
remove_file(&local_tweet_media_path)
.await