Skip to content

Commit

Permalink
Update src/settings.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Clément Renault <renault.cle@gmail.com>
  • Loading branch information
irevoire and Kerollmops authored Feb 10, 2022
1 parent 547bf42 commit 645754d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ impl Settings {
displayed_attributes: None,
}
}
pub fn with_synonyms<S, U>(self, synonyms: HashMap<S, U>) -> Settings
pub fn with_synonyms<S, U, V>(self, synonyms: HashMap<S, U>) -> Settings
where
S: AsRef<str>,
U: IntoIterator<Item = S>,
V: AsRef<str>,
U: IntoIterator<Item = V>,
{
Settings {
synonyms: Some(
Expand Down

0 comments on commit 645754d

Please sign in to comment.