refactor: 一些边边角角的小重构 (#213)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2025-01-13 18:57:08 +08:00
committed by GitHub
parent 7d9999d6aa
commit 54b46c150e
9 changed files with 187 additions and 79 deletions

View File

@@ -31,7 +31,7 @@ async fn main() {
let watch_later_config = &CONFIG.watch_later;
loop {
'inner: {
match bili_client.wbi_img().await.map(|wbi_img| wbi_img.into_mixin_key()) {
match bili_client.wbi_img().await.map(|wbi_img| wbi_img.into()) {
Ok(Some(mixin_key)) => bilibili::set_global_mixin_key(mixin_key),
Ok(_) => {
error!("获取 mixin key 失败,无法进行 wbi 签名,等待下一轮执行");