Skip to content

Conversation

@DamienVoreiter
Copy link
Member

@DamienVoreiter DamienVoreiter commented Dec 12, 2025

  • upgrade rust edition
  • add clippy rules
  • fix clippy

@DamienVoreiter DamienVoreiter marked this pull request as ready for review December 12, 2025 15:12
@DamienVoreiter DamienVoreiter changed the title add clippy rules and upgrade edition feat: upgrade rust edition & add clippy (+ fixes) Dec 12, 2025
Copy link
Member

@EQuincerot EQuincerot left a 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

Comment on lines 23 to 29
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
Copy link
Member

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

Copy link
Member Author

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) {
Copy link
Member

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]>
Copy link
Member

@EQuincerot EQuincerot left a 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

@EQuincerot EQuincerot merged commit 34647af into main Dec 15, 2025
8 checks passed
@EQuincerot EQuincerot deleted the add-clippy branch December 15, 2025 14:24
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.

3 participants