aboutsummaryrefslogtreecommitdiffstats
path: root/tests/raw.rs
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2022-12-19 11:49:59 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2022-12-19 11:49:59 +0000
commit646742fdeac25f2b92b7295f2e6250adaf7f5c53 (patch)
tree6788656eef9f0b9049ad6d90bbb8cb72296412c7 /tests/raw.rs
parentBump deps (diff)
downloadminiserve-646742fdeac25f2b92b7295f2e6250adaf7f5c53.tar.gz
miniserve-646742fdeac25f2b92b7295f2e6250adaf7f5c53.zip
Fix lints
Diffstat (limited to '')
-rw-r--r--tests/raw.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/raw.rs b/tests/raw.rs
index 99d6661..f212f58 100644
--- a/tests/raw.rs
+++ b/tests/raw.rs
@@ -67,13 +67,11 @@ fn raw_mode_links_to_directories_end_with_raw_true(
"doesn't end with ?raw=true"
);
} else if class == "file" {
- assert!(true);
+ return;
} else {
- println!(
- "This node is a link and neither of class directory, root or file: {:?}",
- node
+ panic!(
+ "This node is a link and neither of class directory, root or file: {node:?}"
);
- assert!(false);
}
}
}