-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fix clippy warningis & errors #4
Conversation
I definitely like this patch! Great job! I'll try to merge it tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I carefully went through all the changes and I'd be happy to merge all but two files. I'd ask you to revert changes to src/query/parser/expr.rs
and src/query/binary.rs
. For the first one, the function that got deleted is actually needed, I'm about to push a change where it's used. For the second one, as was discussed, there is probably a bug that needs to be fixed. I'm working on the test case right now.
Oops, I remembered why I wrote a loop there... It's an old trick I learned from McConnell's Code Complete. It allows you to have some conditional logic w/o increasing the indentation level. I kind of dislike nested if's. Here is a short explanation from StackOverflow. Well, anyway, I added a test for this logic and got rid of the loop. PTAL #5 |
So what should I do with the loop? I got confused lol |
BTW @yonip23 is my other account, sorry for this 😄 |
Got it! 😉 I think you can just take the version of |
I merged from your main branch and did as you said - please take a look to see that we're on the same page |
Yay! LGTM! |
A follow up to the issue I opened: #3
This PR is a step towards having a working CI/CD - only fixing clippy warnings / errors.
Edit: I fixed the warning below, @iximiuz please take a careful look there to make sure I maintained the logic there.
Note:
One error still remains which I'm currently not sure how to solve, and would like any help!