File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ regex = "1.10.4"
2121tokio = { version = " 1.37" , features = [" sync" , " fs" ] }
2222sha2 = " 0.10.8"
2323futures = " 0.3.30"
24- rand = " 0.8.5 "
24+ rand = " 0.9.0 "
2525async-trait = " 0.1.80"
2626bytes = " 1.6.0"
2727tokio-util = " 0.7.11"
Original file line number Diff line number Diff line change 11use futures:: future:: try_join_all;
2- use rand:: { distributions:: Alphanumeric , Rng } ;
2+ use rand:: distr:: Alphanumeric ;
3+ use rand:: Rng ;
34use reqwest:: Url ;
45use std:: convert:: TryFrom ;
56use std:: ops:: Deref ;
@@ -426,7 +427,7 @@ async fn from_file_single_clean_file() {
426427
427428#[ tokio:: test]
428429async fn from_file_single_unknown_file ( ) {
429- let unknown: String = rand:: thread_rng ( )
430+ let unknown: String = rand:: rng ( )
430431 . sample_iter ( & Alphanumeric )
431432 . take ( 50 )
432433 . map ( char:: from)
@@ -449,12 +450,12 @@ async fn from_file_single_unknown_file() {
449450
450451#[ tokio:: test]
451452async fn from_files_unknown_files ( ) {
452- let unknown1: String = rand:: thread_rng ( )
453+ let unknown1: String = rand:: rng ( )
453454 . sample_iter ( & Alphanumeric )
454455 . take ( 50 )
455456 . map ( char:: from)
456457 . collect ( ) ;
457- let unknown2: String = rand:: thread_rng ( )
458+ let unknown2: String = rand:: rng ( )
458459 . sample_iter ( & Alphanumeric )
459460 . take ( 50 )
460461 . map ( char:: from)
You can’t perform that action at this time.
0 commit comments