summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author zaaarf <me@zaaarf.foo>2024-02-19 17:12:17 +0100
committer zaaarf <me@zaaarf.foo>2024-02-19 17:12:17 +0100
commita497b3ad5b271695b8ea2fb1eab121b7bacddc53 (patch)
treee6e38e7ae9f42950d49bc9407cbc2f645cbe1500 /src
parent970f7ec875453e4c36a41d75ac31c6dd170cb193 (diff)
chore: try_load with &str instead of String0.1.0
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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<Self> {
+ pub fn try_load(path: &str, default_language: &str) -> Result<Self> {
let mut bundles = HashMap::new();
let mut available_languages = HashMap::new();
let paths = std::fs::read_dir(path)?