Skip to content

Conversation

paolobarbolini
Copy link
Contributor

@paolobarbolini paolobarbolini commented Jan 4, 2025

This fixes a regression introduced by #3352 that make tests fail to build on 32 bit platforms, caused by this function 1 trying to compare a number bigger than what usize can represent on those platforms.

I've also suggested clippy add a lint 2 for this kind of things.

Footnotes

  1. https://github.com/launchbadge/sqlx/blob/9d74aeae5253a5bcdf07c5e3f581a6282e609eac/sqlx-cli/tests/add.rs#L36-L46

  2. https://github.com/rust-lang/rust-clippy/issues/13943

@abonander abonander merged commit 6b33766 into launchbadge:main Jan 7, 2025
81 checks passed
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