-
Notifications
You must be signed in to change notification settings - Fork 0
feat: upgrade rust edition & add clippy (+ fixes) #33
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
Conversation
EQuincerot
left a comment
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.
Thanks a lot for this PR!
Just few comments / suggestions / thoughts
| clippy: | ||
| name: 📎 Clippy - PG 15 | ||
| runs-on: ubuntu-latest | ||
| container: pgxn/pgxn-tools | ||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | ||
| - run: cargo clippy --color always --features pg15 |
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.
Debatable. It was after Test PG15 to spare 5min of build :)
Your way gives a better feedback in Github though
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.
At the start, I wanted to add clippy for all features but it fails 😭
I tried to only do clippy like you do formatting but it fails
Maybe better to let it as it is, WDYT ?
| } | ||
| fn check_current_node(&mut self, node: *mut Plan, rtables: *mut List) { | ||
| unsafe { | ||
| if node.as_ref().map(|plan_ref| plan_ref.type_) != Some(T_SeqScan) { |
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.
👍 more elegant
Co-authored-by: Emmanuel Quincerot <[email protected]>
EQuincerot
left a comment
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.
❤️ thanks again for this contribution
Uh oh!
There was an error while loading. Please reload this page.