From 4d49c9bf75462e3ddfe3ce8815f83a46c8c43701 Mon Sep 17 00:00:00 2001 From: Zibi Braniecki Date: Wed, 29 Jan 2020 13:20:49 +0100 Subject: [PATCH] Fix maximize in negotiation --- src/negotiate/likely_subtags.rs | 4 ++-- src/negotiate/mod.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/negotiate/likely_subtags.rs b/src/negotiate/likely_subtags.rs index eaec14d..044d1a1 100644 --- a/src/negotiate/likely_subtags.rs +++ b/src/negotiate/likely_subtags.rs @@ -5,11 +5,11 @@ static REGION_MATCHING_KEYS: &[&str] = &[ ]; pub trait MockLikelySubtags { - fn add_likely_subtags(&mut self) -> bool; + fn maximize(&mut self) -> bool; } impl MockLikelySubtags for LanguageIdentifier { - fn add_likely_subtags(&mut self) -> bool { + fn maximize(&mut self) -> bool { let extended = match self.to_string().as_str() { "en" => "en-Latn-US", "fr" => "fr-Latn-FR", diff --git a/src/negotiate/mod.rs b/src/negotiate/mod.rs index 6920e49..803d6e0 100644 --- a/src/negotiate/mod.rs +++ b/src/negotiate/mod.rs @@ -186,7 +186,7 @@ pub fn filter_matches<'a, R: 'a + AsRef, A: 'a + AsRef, A: 'a + AsRef