Skip to content
Permalink
Browse files

Remove superfluous clone

  • Loading branch information
samfoo committed Sep 19, 2015
1 parent 6d20b38 commit 641119206e8069486c6cd66296053830d001e245
Showing with 0 additions and 2 deletions.
  1. +0 −2 tests/unit/net/http_loader.rs
@@ -398,7 +398,6 @@ fn test_load_doesnt_add_host_to_sts_list_when_url_is_http_even_if_sts_headers_ar
&Factory,
DEFAULT_USER_AGENT.to_string());

let hsts_list = hsts_list.clone();
assert_eq!(hsts_list.read().unwrap().is_host_secure("mozilla.com"), false);
}

@@ -431,7 +430,6 @@ fn test_load_adds_host_to_sts_list_when_url_is_https_and_sts_headers_are_present
&Factory,
DEFAULT_USER_AGENT.to_string());

let hsts_list = hsts_list.clone();
assert!(hsts_list.read().unwrap().is_host_secure("mozilla.com"));
}

0 comments on commit 6411192

Please sign in to comment.
You can’t perform that action at this time.