apply clippy lints - tests

This commit is contained in:
freestrings
2019-06-25 22:42:21 +09:00
parent 2f0d29d644
commit 319186b1d9
8 changed files with 45 additions and 57 deletions

View File

@ -37,11 +37,7 @@ fn compile() {
fn compile_error() {
let mut template = jsonpath::compile("$[");
if let Err(JsonPathError::Path(_)) = template(&Value::Null) {
assert!(true);
} else {
assert!(false);
}
assert!(template(&Value::Null).is_err());
}
setup();