mirror of
https://framagit.org/veretcle/scootaloo.git
synced 2025-07-20 17:11:19 +02:00
refactor(fmt): delete String::from() format in favor of .to_string()/to_owned()
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user