From 4dced421b75299311f1d2a67222e91ede7afdbb0 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 9 Mar 2026 22:52:32 +0100 Subject: [PATCH] Fix clippy unreadable literal warnings --- examples/big.rs | 2 +- tests/test.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/big.rs b/examples/big.rs index 6456497..4332d88 100644 --- a/examples/big.rs +++ b/examples/big.rs @@ -9,7 +9,7 @@ fn main() { let mut cells = Vec::new(); for _ in 0..10000 { cells.push(n.to_string()); - n = n.overflowing_pow(2).0 % 100000000; + n = n.overflowing_pow(2).0 % 100_000_000; } let grid = Grid::new( diff --git a/tests/test.rs b/tests/test.rs index a80d4f3..6436fe0 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -224,7 +224,7 @@ fn exact_fit() { // This is a reproduction of https://github.com/eza-community/eza/issues/845 #[test] fn eza_many_folders() { - let cells: Vec<_> = (100000i32..=100401).map(|i| i.to_string()).collect(); + let cells: Vec<_> = (100_000_i32..=100_401).map(|i| i.to_string()).collect(); let grid = Grid::new( cells,