about summary refs log tree commit diff
path: root/src/bin/kittybox_database_converter.rs
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2021-12-06 20:49:58 +0300
committerVika <vika@fireburn.ru>2021-12-06 21:00:02 +0300
commitc02037628e36e71e528b3c76ffb88dc103d73228 (patch)
treee0d78a61af2f6e1ca7effcca1722f0da31293c05 /src/bin/kittybox_database_converter.rs
parent9a9776230ce8d12d305ca8db19cc76f20ae40926 (diff)
downloadkittybox-c02037628e36e71e528b3c76ffb88dc103d73228.tar.zst
Make rustfmt and clippy happy
Diffstat (limited to 'src/bin/kittybox_database_converter.rs')
-rw-r--r--src/bin/kittybox_database_converter.rs4
1 files changed, 2 insertions, 2 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]