From 1ea41313173b82668969caaf352edc87215f86e9 Mon Sep 17 00:00:00 2001 From: Alexandru Bordei Date: Wed, 31 Dec 2014 00:10:01 +0200 Subject: [PATCH] Replaced deprecated reference to trim_chars with trim_matches --- src/header/common/cache_control.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/header/common/cache_control.rs b/src/header/common/cache_control.rs index 83e04b08..74df42a1 100644 --- a/src/header/common/cache_control.rs +++ b/src/header/common/cache_control.rs @@ -109,7 +109,7 @@ impl FromStr for CacheDirective { "proxy-revalidate" => Some(ProxyRevalidate), "" => None, _ => match s.find('=') { - Some(idx) if idx+1 < s.len() => match (s[..idx], s[idx+1..].trim_chars('"')) { + Some(idx) if idx+1 < s.len() => match (s[..idx], s[idx+1..].trim_matches('"')) { ("max-age" , secs) => secs.parse().map(MaxAge), ("max-stale", secs) => secs.parse().map(MaxStale), ("min-fresh", secs) => secs.parse().map(MinFresh),