@@ -92,7 +92,7 @@ fn criterion_benchmark(c: &mut Criterion) {
92
92
for num_bytes in ( 1 ..=size_of :: < u8 > ( ) ) . step_by ( 3 ) {
93
93
let x = num_bytes;
94
94
group. bench_with_input (
95
- BenchmarkId :: new ( "get_aligned" , format ! ( "u8_num_bytes_{}" , x ) ) ,
95
+ BenchmarkId :: new ( "get_aligned" , format ! ( "u8_num_bytes_{x}" ) ) ,
96
96
& x,
97
97
|b, & x| {
98
98
let mut reader: BitReader = BitReader :: new_all ( buffer. slice ( 0 ) ) ;
@@ -103,7 +103,7 @@ fn criterion_benchmark(c: &mut Criterion) {
103
103
for num_bytes in ( 1 ..=size_of :: < u32 > ( ) ) . step_by ( 3 ) {
104
104
let x = num_bytes;
105
105
group. bench_with_input (
106
- BenchmarkId :: new ( "get_aligned" , format ! ( "u32_num_bytes_{}" , x ) ) ,
106
+ BenchmarkId :: new ( "get_aligned" , format ! ( "u32_num_bytes_{x}" ) ) ,
107
107
& x,
108
108
|b, & x| {
109
109
let mut reader: BitReader = BitReader :: new_all ( buffer. slice ( 0 ) ) ;
@@ -114,7 +114,7 @@ fn criterion_benchmark(c: &mut Criterion) {
114
114
for num_bytes in ( 1 ..=size_of :: < i32 > ( ) ) . step_by ( 3 ) {
115
115
let x = num_bytes;
116
116
group. bench_with_input (
117
- BenchmarkId :: new ( "get_aligned" , format ! ( "i32_num_bytes_{}" , x ) ) ,
117
+ BenchmarkId :: new ( "get_aligned" , format ! ( "i32_num_bytes_{x}" ) ) ,
118
118
& x,
119
119
|b, & x| {
120
120
let mut reader: BitReader = BitReader :: new_all ( buffer. slice ( 0 ) ) ;
@@ -127,7 +127,7 @@ fn criterion_benchmark(c: &mut Criterion) {
127
127
for num_bytes in ( 1 ..=size_of :: < i32 > ( ) ) . step_by ( 3 ) {
128
128
let x = num_bytes * 8 ;
129
129
group. bench_with_input (
130
- BenchmarkId :: new ( "get_value" , format ! ( "i32_num_bits_{}" , x ) ) ,
130
+ BenchmarkId :: new ( "get_value" , format ! ( "i32_num_bits_{x}" ) ) ,
131
131
& x,
132
132
|b, & x| {
133
133
let mut reader: BitReader = BitReader :: new_all ( buffer. slice ( 0 ) ) ;
@@ -140,7 +140,7 @@ fn criterion_benchmark(c: &mut Criterion) {
140
140
for num_bytes in ( 1 ..=8 ) . step_by ( 7 ) {
141
141
let x = num_bytes;
142
142
group. bench_with_input (
143
- BenchmarkId :: new ( "read_num_bytes_u64" , format ! ( "num_bytes_{}" , x ) ) ,
143
+ BenchmarkId :: new ( "read_num_bytes_u64" , format ! ( "num_bytes_{x}" ) ) ,
144
144
& x,
145
145
|b, & x| {
146
146
b. iter ( || read_num_bytes_u64 ( black_box ( x) , black_box ( buffer. as_slice ( ) ) ) ) ;
@@ -152,7 +152,7 @@ fn criterion_benchmark(c: &mut Criterion) {
152
152
for num_bytes in ( 1 ..=4 ) . step_by ( 3 ) {
153
153
let x = num_bytes;
154
154
group. bench_with_input (
155
- BenchmarkId :: new ( "read_num_bytes_u32" , format ! ( "num_bytes_{}" , x ) ) ,
155
+ BenchmarkId :: new ( "read_num_bytes_u32" , format ! ( "num_bytes_{x}" ) ) ,
156
156
& x,
157
157
|b, & x| {
158
158
b. iter ( || read_num_bytes_u32 ( black_box ( x) , black_box ( buffer. as_slice ( ) ) ) ) ;
@@ -164,7 +164,7 @@ fn criterion_benchmark(c: &mut Criterion) {
164
164
for length in ( 0 ..=64 ) . step_by ( 32 ) {
165
165
let x = length;
166
166
group. bench_with_input (
167
- BenchmarkId :: new ( "trailing_bits" , format ! ( "num_bits_{}" , x ) ) ,
167
+ BenchmarkId :: new ( "trailing_bits" , format ! ( "num_bits_{x}" ) ) ,
168
168
& x,
169
169
|b, & x| {
170
170
b. iter ( || trailing_bits ( black_box ( 1234567890 ) , black_box ( x) ) ) ;
0 commit comments