From 05ddfd10a2ba3dedcc48d8d9669f0caec37e7e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20Ker=C3=A4nen?= Date: Tue, 30 Dec 2014 16:22:45 +0200 Subject: [PATCH] Changed deprecated trim_chars to 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),