mirror of
https://github.com/zaaarf/fluent-fluently.git
synced 2024-11-10 05:59:20 +01:00
chore: try_load with &str instead of String
This commit is contained in:
parent
970f7ec875
commit
a497b3ad5b
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ impl Localiser {
|
||||||
/// in the second case the same will be done to their chilren instead.
|
/// 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],
|
/// [FluentResource]s within a same folder will be considered part of a same [FluentBundle],
|
||||||
/// forming a single localisation for all intents and purposes.
|
/// 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 bundles = HashMap::new();
|
||||||
let mut available_languages = HashMap::new();
|
let mut available_languages = HashMap::new();
|
||||||
let paths = std::fs::read_dir(path)?
|
let paths = std::fs::read_dir(path)?
|
||||||
|
|
Loading…
Reference in a new issue