about summary refs log tree commit diff
path: root/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/kittybox_database_converter.rs4
-rw-r--r--src/bin/pyindieblog_to_kittybox.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/kittybox_database_converter.rs b/src/bin/kittybox_database_converter.rs
index 4dcd2ab..bc355c9 100644
--- a/src/bin/kittybox_database_converter.rs
+++ b/src/bin/kittybox_database_converter.rs
@@ -58,7 +58,7 @@ async fn convert_from_redis<S: Storage>(from: String, new_storage: S) -> anyhow:
             Ok(settings) => {
                 for (k, v) in settings.iter() {
                     if let Err(e) = storage
-                        .set_setting(k, &user, v)
+                        .set_setting(k, user, v)
                         .await
                         .with_context(|| format!("Failed setting {} for {}", k, user))
                     {
@@ -72,7 +72,7 @@ async fn convert_from_redis<S: Storage>(from: String, new_storage: S) -> anyhow:
         }
     }
 
-    return Ok(());
+    Ok(())
 }
 
 #[async_std::main]
diff --git a/src/bin/pyindieblog_to_kittybox.rs b/src/bin/pyindieblog_to_kittybox.rs
index 303ca56..38590c3 100644
--- a/src/bin/pyindieblog_to_kittybox.rs
+++ b/src/bin/pyindieblog_to_kittybox.rs
@@ -1,5 +1,5 @@
 use anyhow::{anyhow, Context, Result};
-use redis;
+
 use redis::AsyncCommands;
 use serde::{Deserialize, Serialize};
 use std::collections::HashMap;