replace len() !=0 with !is_empty()

This commit is contained in:
João Oliveira 2015-08-17 02:54:30 +01:00
parent 3bb930661d
commit 1e20447746
3 changed files with 3 additions and 4 deletions

View file

@ -275,7 +275,7 @@ fn test_hsts_list_with_expired_entry_is_not_is_host_secure() {
#[test]
fn test_preload_hsts_domains_well_formed() {
let hsts_list = preload_hsts_domains().unwrap();
assert!(hsts_list.entries.len() != 0);
assert!(!hsts_list.entries.is_empty());
}
#[test]
@ -301,4 +301,3 @@ fn test_secure_url_forces_an_http_host_in_list_to_https() {
assert_eq!(&secure.scheme, "https");
}