mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-06-12 23:51:26 +00:00
apply clippy lints - tests
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user