about summary refs log tree commit diff
path: root/src/database/redis
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2021-05-18 18:50:13 +0300
committerVika <vika@fireburn.ru>2021-05-18 18:50:13 +0300
commitf5ccd21f09e2ca5f26ff63a2d3815669064e36f0 (patch)
tree1192f7f924a5141277064e26a3a151f1efd8cd32 /src/database/redis
parentd178e35c34a9106dd6c0a86286ff56dc8b297942 (diff)
downloadkittybox-f5ccd21f09e2ca5f26ff63a2d3815669064e36f0.tar.zst
Make rustfmt happy again after Clippy edits
Diffstat (limited to 'src/database/redis')
-rw-r--r--src/database/redis/mod.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/database/redis/mod.rs b/src/database/redis/mod.rs
index cf94386..e64120f 100644
--- a/src/database/redis/mod.rs
+++ b/src/database/redis/mod.rs
@@ -167,10 +167,7 @@ impl Storage for RedisStorage {
                         |post: Option<serde_json::Value>| {
                             post.map(|post| MicropubChannel {
                                 uid: post["properties"]["uid"][0].as_str().unwrap().to_string(),
-                                name: post["properties"]["name"][0]
-                                    .as_str()
-                                    .unwrap()
-                                    .to_string(),
+                                name: post["properties"]["name"][0].as_str().unwrap().to_string(),
                             })
                         },
                     )