File tree Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 23
23
steps :
24
24
- uses : actions/checkout@v4
25
25
26
- - uses : rui314/setup-mold@85c79d00377f0d32cdbae595a46de6f7c2fa6599
26
+ - uses : rui314/setup-mold@702b1908b5edf30d71a8d1666b724e0f0c6fa035
27
27
28
28
- name : Build
29
29
run : make build
38
38
steps :
39
39
- uses : actions/checkout@v4
40
40
41
- - uses : rui314/setup-mold@85c79d00377f0d32cdbae595a46de6f7c2fa6599
41
+ - uses : rui314/setup-mold@702b1908b5edf30d71a8d1666b724e0f0c6fa035
42
42
43
43
- name : Check formatting and clippy
44
44
run : make lint
49
49
steps :
50
50
- uses : actions/checkout@v4
51
51
52
- - uses : rui314/setup-mold@85c79d00377f0d32cdbae595a46de6f7c2fa6599
52
+ - uses : rui314/setup-mold@702b1908b5edf30d71a8d1666b724e0f0c6fa035
53
53
54
54
- name : Run unit tests
55
55
run : make test
Original file line number Diff line number Diff line change 21
21
fn into_block ( self ) -> u64 {
22
22
assert ! (
23
23
self . into_usize( ) < BITS_PER_BLOCK ,
24
- "position in block must be less then 64, got {:?}" ,
25
- self
24
+ "position in block must be less then 64, got {self:?}" ,
26
25
) ;
27
26
1u64 << self . into_usize ( )
28
27
}
Original file line number Diff line number Diff line change @@ -54,13 +54,13 @@ mod tests {
54
54
#[ test]
55
55
fn test_lookup_7 ( ) {
56
56
let var = lookup_random_hashes_variance :: < 7 > ( 1 << 16 ) ;
57
- assert ! ( var < 1e-4 , "variance {} too large" , var ) ;
57
+ assert ! ( var < 1e-4 , "variance {var } too large" ) ;
58
58
}
59
59
60
60
#[ test]
61
61
fn test_lookup_13 ( ) {
62
62
let var = lookup_random_hashes_variance :: < 13 > ( 1 << 16 ) ;
63
- assert ! ( var < 1e-4 , "variance {} too large" , var ) ;
63
+ assert ! ( var < 1e-4 , "variance {var } too large" ) ;
64
64
}
65
65
66
66
fn lookup_random_hashes_variance < const B : usize > ( n : u64 ) -> f64 {
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ pub fn run_simulations(
98
98
println ! ( "Parameters:" ) ;
99
99
println ! ( ) ;
100
100
println ! ( " number of configs = {}" , configs. len( ) ) ;
101
- println ! ( " number of samples = {}" , samples ) ;
101
+ println ! ( " number of samples = {samples}" ) ;
102
102
println ! ( " number of sets = {}" , set_sizes. len( ) ) ;
103
103
println ! ( ) ;
104
104
@@ -107,7 +107,7 @@ pub fn run_simulations(
107
107
let results = configs
108
108
. iter ( )
109
109
. map ( |( name, f) | {
110
- print ! ( " {} ... " , name ) ;
110
+ print ! ( " {name } ... " ) ;
111
111
std:: io:: stdout ( ) . flush ( ) . expect ( "stdout can be flushed" ) ;
112
112
let t = Instant :: now ( ) ;
113
113
let result = simulate ( f, samples, set_sizes) ;
Original file line number Diff line number Diff line change @@ -449,7 +449,7 @@ mod tests {
449
449
0 => 0 ,
450
450
1 ..=3 => 1 ,
451
451
4 => 2 ,
452
- _ => panic ! ( "invalid utf8 char width: {}" , len ) ,
452
+ _ => panic ! ( "invalid utf8 char width: {len}" ) ,
453
453
}
454
454
}
455
455
You can’t perform that action at this time.
0 commit comments