fix warnings

This commit is contained in:
mii443
2025-04-04 21:11:46 +09:00
parent af83f6b6e0
commit 82e3c55fd5
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ gcp_auth = "0.5.0"
reqwest = { version = "0.11", features = ["json"] }
base64 = "0.13"
async-trait = "0.1.57"
redis = "*"
redis = "0.29.2"
regex = "1"
tracing-subscriber = "0.3.19"
lru = "0.13.0"

View File

@ -84,7 +84,7 @@ impl Database {
autostart_channel_id: None,
};
self.client.get_connection().unwrap().set(
self.client.get_connection().unwrap().set::<String, String, ()>(
format!("discord_server:{}", server_id),
serde_json::to_string(&config).unwrap(),
)?;
@ -107,7 +107,7 @@ impl Database {
voicevox_speaker: Some(1),
};
self.client.get_connection().unwrap().set(
self.client.get_connection().unwrap().set::<String, String, ()>(
format!("discord_user:{}", user_id),
serde_json::to_string(&config).unwrap(),
)?;