Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
besok committed Dec 26, 2024
1 parent b5c44e9 commit 50438ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/jsonpath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ mod tests {
use crate::path::JsonLike;
use crate::JsonPathValue::{NoValue, Slice};
use crate::{jp_v, JsonPath, JsonPathParserError, JsonPathValue};
use crate::{JsonPathQuery, JsonPtr};
use crate::{JsonPathQuery};
use serde_json::{json, Value};
use std::ops::Deref;

Expand Down Expand Up @@ -909,7 +909,7 @@ mod tests {
let path: Box<JsonPath> = Box::from(JsonPath::try_from("$.[?(@.verb == 'RUN')]")?);
let elem = path
.find_as_path(&json)
.get(0)
.first()
.cloned()
.ok_or(JsonPathParserError::InvalidJsonPath("".to_string()))?;

Expand Down
2 changes: 1 addition & 1 deletion src/path/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::fmt::Debug;

use crate::{jsp_idx, jsp_obj, JsonPathParserError, JsonPathStr, JsonPathValue, JsonPtr};
use crate::{jsp_idx, jsp_obj, JsonPathParserError, JsonPathStr, JsonPathValue};
use regex::Regex;
use serde_json::{json, Value};

Expand Down

0 comments on commit 50438ef

Please sign in to comment.