about summary refs log tree commit diff
path: root/src/micropub
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2021-05-17 18:52:12 +0300
committerVika <vika@fireburn.ru>2021-05-17 18:52:12 +0300
commitd178e35c34a9106dd6c0a86286ff56dc8b297942 (patch)
treedb99416312044e76a7678d836dc635bf0cf888b1 /src/micropub
parent9a2791d745f4a9f0307eb69b50de5629f51564cc (diff)
downloadkittybox-d178e35c34a9106dd6c0a86286ff56dc8b297942.tar.zst
Make clippy happy
Diffstat (limited to 'src/micropub')
-rw-r--r--src/micropub/post.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/micropub/post.rs b/src/micropub/post.rs
index b3fe4ee..edadeed 100644
--- a/src/micropub/post.rs
+++ b/src/micropub/post.rs
@@ -346,19 +346,19 @@ async fn post_process_new_post<S: Storage>(
             .filter_map(|v: surf::Url| async move {
                 if let Ok(res) = http.get(&v).send().await {
                     if res.status() != 200 {
-                        return None;
+                        None
                     } else {
-                        return Some((v, res));
+                        Some((v, res))
                     }
                 } else {
-                    return None;
+                    None
                 }
             })
             .filter_map(|(v, mut res): (surf::Url, surf::Response)| async move {
                 if let Ok(body) = res.body_string().await {
-                    return Some((v, body));
+                    Some((v, body))
                 } else {
-                    return None;
+                    None
                 }
             })
             .collect()
@@ -373,7 +373,7 @@ async fn post_process_new_post<S: Storage>(
     if let Some(syndication_targets) = post["properties"]["syndicate-to"].as_array() {
         syndicated_copies = stream::iter(
             syndication_targets
-                .into_iter()
+                .iter()
                 .filter_map(|v| v.as_str())
                 .filter_map(|t| surf::Url::parse(t).ok())
                 .collect::<Vec<_>>()