Skip to content

fix typos and warnings - #6

Open
gkorland wants to merge 2 commits into
masterfrom
gkorland_new_jsonpath_functionalities
Open

fix typos and warnings#6
gkorland wants to merge 2 commits into
masterfrom
gkorland_new_jsonpath_functionalities

Conversation

@gkorland

Copy link
Copy Markdown
Contributor

No description provided.

meirand others added 2 commits May 3, 2022 18:21
1. Pop last token from json path
2. Check if the json path is static path (lead to single result)
3. Check the amount of tokens on the json path
Comment threadsrc/json_path.rs
pub fn is_static(&mut self) -> bool {
if self.is_static.is_some() {
return *self.is_static.as_ref().unwrap();
if let Some(s) = self.is_static {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this will consume the option value and will leave it None?

@MeirShpilraienMeirShpilraien left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Small question.

Base automatically changed from new_jsonpath_functionalities to masterAugust 25, 2022 08:15
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@gkorland@MeirShpilraien