aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2025-03-04 22:48:32 +0800
committerKunoiSayami <[email protected]>2025-03-04 22:48:32 +0800
commit58047f90f79b129e445cbf856a23b3a5518c0b12 (patch)
tree42b213b2574840786fdc98684170881b973a282d /src/main.rs
parent1c9133be32345593b64cb4fff7fe28206adb3fb8 (diff)
chore: Update to rust-2024 version
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 5b10e01..268cbe5 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -168,7 +168,7 @@ async fn cmd_authenticate_cookie(matches: &ArgMatches, cfg: Config) -> Result<bo
.await?
{
let users = users.split_whitespace().collect::<Vec<&str>>();
- conn.sadd(&redis_key, users).await?;
+ let _: () = conn.sadd(&redis_key, users).await?;
}
}
@@ -841,7 +841,7 @@ fn main() -> Result<()> {
return Err(anyhow::Error::msg(format!(
"Got error while append to {}: {:?}",
&logfile_path, e
- )))
+ )));
}
};