Skip to content

Commit

Permalink
Remove superfluous clone
Browse files Browse the repository at this point in the history
  • Loading branch information
samfoo committed Sep 19, 2015
1 parent 6d20b38 commit 6411192
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/unit/net/http_loader.rs
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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"));
}

Expand Down

0 comments on commit 6411192

Please sign in to comment.