Skip to content

Commit 50438ef

Browse files
committed
fix clippy
1 parent b5c44e9 commit 50438ef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/jsonpath.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ mod tests {
128128
use crate::path::JsonLike;
129129
use crate::JsonPathValue::{NoValue, Slice};
130130
use crate::{jp_v, JsonPath, JsonPathParserError, JsonPathValue};
131-
use crate::{JsonPathQuery, JsonPtr};
131+
use crate::{JsonPathQuery};
132132
use serde_json::{json, Value};
133133
use std::ops::Deref;
134134

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

src/path/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::fmt::Debug;
22

3-
use crate::{jsp_idx, jsp_obj, JsonPathParserError, JsonPathStr, JsonPathValue, JsonPtr};
3+
use crate::{jsp_idx, jsp_obj, JsonPathParserError, JsonPathStr, JsonPathValue};
44
use regex::Regex;
55
use serde_json::{json, Value};
66

0 commit comments

Comments
 (0)