We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 967bc9c commit bed988cCopy full SHA for bed988c
src/negotiate/mod.rs
@@ -326,9 +326,9 @@ fn filter_matches<'a>(
326
supported_locales
327
}
328
329
-pub fn negotiate_languages<'a, T: AsRef<str>>(
330
- requested: &'a [T],
331
- available: &'a [T],
+pub fn negotiate_languages<'a, R: AsRef<str>, A: AsRef<str>>(
+ requested: &'a [R],
+ available: &'a [A],
332
default: Option<&'a str>,
333
strategy: &NegotiationStrategy,
334
) -> Vec<&'a str> {
0 commit comments