From 81e034885baa6d2da0c758d150a94c58ced70131 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Sun, 11 Oct 2015 20:47:45 -0400 Subject: Cleanup code that was warned by rust-clippy --- components/net/resource_task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/net/resource_task.rs') diff --git a/components/net/resource_task.rs b/components/net/resource_task.rs index f84f281ea1b..1631b5a8e7d 100644 --- a/components/net/resource_task.rs +++ b/components/net/resource_task.rs @@ -74,7 +74,7 @@ pub fn start_sending_sniffed_opt(start_chan: LoadConsumer, mut metadata: Metadat if let Some(ref headers) = metadata.headers { if let Some(ref raw_content_type) = headers.get_raw("content-type") { if raw_content_type.len() > 0 { - let ref last_raw_content_type = raw_content_type[raw_content_type.len() - 1]; + let last_raw_content_type = &raw_content_type[raw_content_type.len() - 1]; check_for_apache_bug = apache_bug_predicate(last_raw_content_type) } } -- cgit v1.2.3