From a497b3ad5b271695b8ea2fb1eab121b7bacddc53 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Mon, 19 Feb 2024 17:12:17 +0100 Subject: chore: try_load with &str instead of String --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index e62d749..978dbbe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,7 +43,7 @@ impl Localiser { /// in the second case the same will be done to their chilren instead. /// [FluentResource]s within a same folder will be considered part of a same [FluentBundle], /// forming a single localisation for all intents and purposes. - pub fn try_load(path: String, default_language: String) -> Result { + pub fn try_load(path: &str, default_language: &str) -> Result { let mut bundles = HashMap::new(); let mut available_languages = HashMap::new(); let paths = std::fs::read_dir(path)? -- cgit v1.2.3-56-ga3b1