Skip to content
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(cli): running tests on 32bit platforms #3666

Merged
merged 1 commit into from
Jan 7, 2025

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