Skip to content

Commit 2914c90

Browse files
committed
allow override uris to be passed as strings
2 parents 0f6dedb + b4f1bbd commit 2914c90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pointercrate-core-pages/src/localization.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ impl LocalizationConfiguration {
112112
/// .with_fallback("ru", "ru"),
113113
/// );
114114
/// ```
115-
pub fn with_override(mut self, uri: PathBuf, locale_set: LocaleSet) -> Self {
116-
self.overrides.insert(uri, locale_set);
115+
pub fn with_override<T: Into<PathBuf>>(mut self, uri: T, locale_set: LocaleSet) -> Self {
116+
self.overrides.insert(uri.into(), locale_set);
117117

118118
self
119119
}

0 commit comments

Comments
 (0)