Skip to content

Commit 4608c36

Browse files
committed
add privacy for pointer
1 parent 9ed123b commit 4608c36

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

benches/equal.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use criterion::{criterion_group, criterion_main, Criterion};
22

33
use serde_json::{json, Value};
4-
use std::str::FromStr;
54
use jsonpath_rust::JsonPath;
65
use jsonpath_rust::parser::model::JpQuery;
76
use jsonpath_rust::parser::parse_json_path;

rfc9535/test_suite/results.csv

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
Total; Passed; Failed; Date
2-
687; 640; 37; 2025-03-11 22:37:58
32
687; 642; 35; 2025-03-11 22:51:22
43
687; 642; 35; 2025-03-11 22:54:09
54
687; 642; 35; 2025-03-12 23:25:37
@@ -9,3 +8,4 @@ Total; Passed; Failed; Date
98
687; 642; 35; 2025-03-15 16:54:49
109
687; 642; 35; 2025-03-15 19:35:00
1110
687; 642; 35; 2025-03-15 19:42:17
11+
687; 642; 35; 2025-03-15 19:51:57

src/query/queryable.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,11 @@ fn convert_js_path(path: &str) -> Parsed<String> {
307307

308308
#[cfg(test)]
309309
mod tests {
310-
use crate::parser::{parse_json_path, Parsed};
310+
use crate::parser::Parsed;
311311
use crate::query::queryable::{convert_js_path, Queryable};
312312
use crate::query::Queried;
313313
use crate::JsonPath;
314314
use serde_json::json;
315-
use std::borrow::Cow;
316315

317316
#[test]
318317
fn in_smoke() -> Queried<()> {

src/query/state.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ impl<'a, T: Queryable> Data<'a, T> {
193193
/// Represents a pointer to a specific location in the data structure.
194194
/// It contains a reference to the data and a path that indicates the location of the data in the structure.
195195
#[derive(Debug, Clone, PartialEq)]
196-
pub struct Pointer<'a, T: Queryable> {
196+
pub(crate) struct Pointer<'a, T: Queryable> {
197197
pub inner: &'a T,
198198
pub path: QueryPath,
199199
}

0 commit comments

Comments
 (0)