We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0f6dedb + b4f1bbd commit 2914c90Copy full SHA for 2914c90
pointercrate-core-pages/src/localization.rs
@@ -112,8 +112,8 @@ impl LocalizationConfiguration {
112
/// .with_fallback("ru", "ru"),
113
/// );
114
/// ```
115
- pub fn with_override(mut self, uri: PathBuf, locale_set: LocaleSet) -> Self {
116
- self.overrides.insert(uri, locale_set);
+ pub fn with_override<T: Into<PathBuf>>(mut self, uri: T, locale_set: LocaleSet) -> Self {
+ self.overrides.insert(uri.into(), locale_set);
117
118
self
119
}
0 commit comments