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 {
18751875 assert ! ( PublicKey :: from_str( "0218845781f631c48f1c9709e23092067d06837f30aa0cd0544ac887fe91ddd1" ) . is_err( ) ) ;
18761876 assert ! ( PublicKey :: from_str( "xx0218845781f631c48f1c9709e23092067d06837f30aa0cd0544ac887fe91ddd1" ) . is_err( ) ) ;
18771877
1878- let long_str: String = core :: iter :: repeat ( 'a' ) . take ( 1024 * 1024 ) . collect ( ) ;
1878+ let long_str = "a" . repeat ( 1024 * 1024 ) ;
18791879 assert ! ( SecretKey :: from_str( & long_str) . is_err( ) ) ;
18801880 assert ! ( PublicKey :: from_str( & long_str) . is_err( ) ) ;
18811881 }
Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ mod tests {
505505 )
506506 . is_err( ) ) ;
507507
508- let long_str: String = core :: iter :: repeat ( 'a' ) . take ( 1024 * 1024 ) . collect ( ) ;
508+ let long_str: String = "a" . repeat ( 1024 * 1024 ) ;
509509 assert ! ( XOnlyPublicKey :: from_str( & long_str) . is_err( ) ) ;
510510 }
511511
You can’t perform that action at this time.
0 commit comments