diff options
| author | Xe Iaso <me@xeiaso.net> | 2023-08-21 21:20:17 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2023-08-21 21:21:55 -0400 |
| commit | f670dafb8a89d8a1294ceab10318454e394c1cec (patch) | |
| tree | eda13d7de5a1b3705d224bcba3f053f0ed33f955 /src/bin | |
| parent | 275327041b4ce5cac6e1adabc813ece54c646cd6 (diff) | |
| download | xesite-f670dafb8a89d8a1294ceab10318454e394c1cec.tar.xz xesite-f670dafb8a89d8a1294ceab10318454e394c1cec.zip | |
clippy auto-fixes
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/fetch_mastodon_post.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/fetch_mastodon_post.rs b/src/bin/fetch_mastodon_post.rs index c7f4275..c4d981c 100644 --- a/src/bin/fetch_mastodon_post.rs +++ b/src/bin/fetch_mastodon_post.rs @@ -40,7 +40,7 @@ async fn main() -> Result<()> { debug!("wrote post to ./data/toots/{post_hash}.json"); - let mut fout = fs::File::create(&format!("./data/toots/{post_hash}.json"))?; + let mut fout = fs::File::create(format!("./data/toots/{post_hash}.json"))?; serde_json::to_writer_pretty(&mut fout, &toot)?; debug!("fetching {} ...", toot.attributed_to); @@ -61,7 +61,7 @@ async fn main() -> Result<()> { let user_hash = xesite::hash_string(user_url); debug!("wrote post to ./data/users/{user_hash}.json"); - let mut fout = fs::File::create(&format!("./data/users/{user_hash}.json"))?; + let mut fout = fs::File::create(format!("./data/users/{user_hash}.json"))?; serde_json::to_writer_pretty(&mut fout, &user)?; Ok(()) |
