This commit is contained in:
2026-04-16 19:34:45 +03:00
parent 1e1d9a9935
commit 91de200b91
5 changed files with 235 additions and 256 deletions

View File

@@ -507,6 +507,12 @@ impl LogoRegistry {
self.logos.insert((team, sport), link);
}
pub fn with_capacity(capacity: usize) -> Self {
Self {
logos: HashMap::with_capacity(capacity),
}
}
pub fn find(&self, team: &str, sport: &str) -> Option<String> {
if let Some(link) = self.logos.get(&(team.to_string(), sport.to_string())) {
return Some(link.clone());