mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
clippy: fix warnings in components/net (#31564)
* clippy: fix some warnings in components/net * fix: review comments * fix: tidy
This commit is contained in:
parent
099bb0fa19
commit
67b277c992
22 changed files with 325 additions and 379 deletions
|
@ -53,7 +53,7 @@ fn test_sniff_mp4_matcher_long() {
|
|||
|
||||
#[test]
|
||||
fn test_validate_classifier() {
|
||||
let classifier = MimeClassifier::new();
|
||||
let classifier = MimeClassifier::default();
|
||||
classifier.validate().expect("Validation error")
|
||||
}
|
||||
|
||||
|
@ -74,7 +74,7 @@ fn test_sniff_with_flags(
|
|||
let mut filename = PathBuf::from("tests/parsable_mime/");
|
||||
filename.push(filename_orig);
|
||||
|
||||
let classifier = MimeClassifier::new();
|
||||
let classifier = MimeClassifier::default();
|
||||
|
||||
let read_result = read_file(&filename);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue