Skip to content

fix typos and warnings #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gkorland
Copy link
Contributor

@gkorland gkorland commented May 4, 2022

No description provided.

MeirShpilraien and 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
@gkorland gkorland requested a review from MeirShpilraien May 4, 2022 12:55
@@ -65,14 +59,14 @@ impl<'i> Query<'i> {
}

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
Collaborator

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?

Copy link
Collaborator

@MeirShpilraien MeirShpilraien left a comment

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 master August 25, 2022 08:15
Sign up for free to 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