Skip to content

Commit

Permalink
Accept different asrefs as requested and available
Browse files Browse the repository at this point in the history
  • Loading branch information
Zibi Braniecki committed Aug 6, 2018
1 parent 967bc9c commit bed988c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/negotiate/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,9 @@ fn filter_matches<'a>(
supported_locales
}

pub fn negotiate_languages<'a, T: AsRef<str>>(
requested: &'a [T],
available: &'a [T],
pub fn negotiate_languages<'a, R: AsRef<str>, A: AsRef<str>>(
requested: &'a [R],
available: &'a [A],
default: Option<&'a str>,
strategy: &NegotiationStrategy,
) -> Vec<&'a str> {
Expand Down

0 comments on commit bed988c

Please sign in to comment.