update code level

This commit is contained in:
lychang
2026-03-25 14:50:50 +08:00
parent 6b2d44ca78
commit 4ff83492f1
3 changed files with 180 additions and 235 deletions

View File

@@ -99,7 +99,7 @@ pub struct FavoriteStatus {
#[derive(Debug, Clone)]
pub struct AlbumsCache {
pub albums: Vec<AlbumInfo>,
pub search_index: std::collections::HashMap<String, Vec<AlbumInfo>>,
pub search_index: HashMap<String, Vec<AlbumInfo>>,
pub last_updated: chrono::DateTime<chrono::Utc>,
}
@@ -107,7 +107,7 @@ impl AlbumsCache {
pub fn new() -> Self {
Self {
albums: Vec::new(),
search_index: std::collections::HashMap::new(),
search_index: HashMap::new(),
last_updated: chrono::Utc::now(),
}
}