From 6ede07c355f29a834748e92cf031c10bd902ab33 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Sat, 11 May 2024 03:12:32 -0400 Subject: [PATCH] Fix CI bug with best_speed_log Apparently `best_speed_log` was never tested - it does not compile due to a missing format placeholder. I think this is what it meant, but feel free to fix it in other way (or delete entirely?) --- src/enc/brotli_bit_stream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enc/brotli_bit_stream.rs b/src/enc/brotli_bit_stream.rs index 0e7dbb0c..fb37e974 100644 --- a/src/enc/brotli_bit_stream.rs +++ b/src/enc/brotli_bit_stream.rs @@ -246,7 +246,7 @@ fn best_speed_log(_name: &str, _data: &[SpeedAndMax; 2], _cost: &[floatX; 2]) {} fn best_speed_log(name: &str, data: &[SpeedAndMax; 2], cost: &[floatX; 2]) { for high in 0..2 { println!( - "{} Speed [ inc: {}, max: {}, algo: 0 ] cost: {}", + "{} Speed [ inc: {}, max: {}, algo: {} ] cost: {}", name, if high != 0 { "hi" } else { "lo" }, data[high].0,