$ rustc -vV
rustc 1.68.2 (9eb3afe9e 2023-03-27) (built from a source tarball)
binary: rustc
commit-hash: 9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0
commit-date: 2023-03-27
host: i686-unknown-freebsd
release: 1.68.2
LLVM version: 15.0.6
$ git checkout v0.10.0
$ cd replibyte
$ cargo build
[...]
error: literal out of range for `usize`
--> replibyte/src/utils.rs:29:24
|
29 | 1024_000_000..=1023_999_999_999 => format!("{:.2} MB", bytes / 1_000_000_000),
| ^^^^^^^^^^^^^^^^
|
= note: the literal `1023_999_999_999` does not fit into the type `usize` whose range is `0..=4294967295`
= note: `#[deny(overflowing_literals)]` on by default
error: literal out of range for `usize`
--> replibyte/src/utils.rs:30:9
|
30 | 1024_000_000_000..=1023_999_999_999_999 => format!("{:.2} GB", bytes / 1_000_000_000_000),
| ^^^^^^^^^^^^^^^^
|
= note: the literal `1024_000_000_000` does not fit into the type `usize` whose range is `0..=4294967295`
error: literal out of range for `usize`
--> replibyte/src/utils.rs:30:28
|
30 | 1024_000_000_000..=1023_999_999_999_999 => format!("{:.2} GB", bytes / 1_000_000_000_000),
| ^^^^^^^^^^^^^^^^^^^^
|
= note: the literal `1023_999_999_999_999` does not fit into the type `usize` whose range is `0..=4294967295`
error: literal out of range for `usize`
--> replibyte/src/utils.rs:30:80
|
30 | 1024_000_000_000..=1023_999_999_999_999 => format!("{:.2} GB", bytes / 1_000_000_000_000),
| ^^^^^^^^^^^^^^^^^
|
= note: the literal `1_000_000_000_000` does not fit into the type `usize` whose range is `0..=4294967295`
error: literal out of range for `usize`
--> replibyte/src/utils.rs:31:42
|
31 | _ => format!("{:.2} TB", bytes / 1_000_000_000_000_000),
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: the literal `1_000_000_000_000_000` does not fit into the type `usize` whose range is `0..=4294967295`