File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1875,7 +1875,7 @@ mod test {
1875
1875
assert ! ( PublicKey :: from_str( "0218845781f631c48f1c9709e23092067d06837f30aa0cd0544ac887fe91ddd1" ) . is_err( ) ) ;
1876
1876
assert ! ( PublicKey :: from_str( "xx0218845781f631c48f1c9709e23092067d06837f30aa0cd0544ac887fe91ddd1" ) . is_err( ) ) ;
1877
1877
1878
- let long_str: String = core :: iter :: repeat ( 'a' ) . take ( 1024 * 1024 ) . collect ( ) ;
1878
+ let long_str = "a" . repeat ( 1024 * 1024 ) ;
1879
1879
assert ! ( SecretKey :: from_str( & long_str) . is_err( ) ) ;
1880
1880
assert ! ( PublicKey :: from_str( & long_str) . is_err( ) ) ;
1881
1881
}
Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ mod tests {
505
505
)
506
506
. is_err( ) ) ;
507
507
508
- let long_str: String = core :: iter :: repeat ( 'a' ) . take ( 1024 * 1024 ) . collect ( ) ;
508
+ let long_str: String = "a" . repeat ( 1024 * 1024 ) ;
509
509
assert ! ( XOnlyPublicKey :: from_str( & long_str) . is_err( ) ) ;
510
510
}
511
511
You can’t perform that action at this time.
0 commit comments