FIX: Apply copilot hints

This commit is contained in:
Nicolás Hatcher
2025-07-03 20:33:39 +02:00
committed by Nicolás Hatcher Andrés
parent b1327d83d4
commit 689f55effa
2 changed files with 4 additions and 3 deletions

View File

@@ -76,5 +76,5 @@ fn get_locales() -> &'static HashMap<String, Locale> {
pub fn get_locale(id: &str) -> Result<&Locale, String> {
get_locales()
.get(id)
.ok_or_else(|| "Invalid locale".to_string())
.ok_or_else(|| format!("Invalid locale: '{id}'"))
}