Skip to content

Compilation error in tests with Rust 1.87: integer out of range for u16 in format string #343

Description

@alamb

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions