Skip to content

Error in rust 1.87: integer out of range for u16 in format string #343

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

Open
alamb opened this issue Apr 28, 2025 · 0 comments
Open

Error in rust 1.87: integer out of range for u16 in format string #343

alamb opened this issue Apr 28, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@alamb
Copy link
Contributor

alamb commented Apr 28, 2025

Describe the bug

In Rust 1.87 some of the object store tests will fail to compile, due to a change in formatting

out] error: invalid format string: integer `5300000` does not fit into the type `u16` whose range is `0..=65535`
[INFO] [stdout]     --> src/integration.rs:1123:45
[INFO] [stdout]      |
[INFO] [stdout] 1123 |         .put_part(Bytes::from(format!("1:{:05300000},", 0)).into())
[INFO] [stdout]      |                                             ^^^^^^^ integer out of range for `u16` in format string
[INFO] [stdout] 

To Reproduce

Expected behavior
We should rewrite this test not to use a giant format string

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant