File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ http-body-util = "0.1"
28
28
hyper = " 1"
29
29
hyper-util = { version = " 0.1" , features = [" server-auto" , " tokio" ] }
30
30
log = " 0.4"
31
- rand = " 0.8 "
31
+ rand = " 0.9 "
32
32
regex = " 1.7"
33
33
serde_json = " 1.0"
34
34
serde_urlencoded = " 0.7"
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ use crate::Request;
7
7
use crate :: { Error , ErrorKind } ;
8
8
use bytes:: Bytes ;
9
9
use http:: { HeaderMap , HeaderName , StatusCode } ;
10
- use rand:: distributions :: Alphanumeric ;
11
- use rand:: { thread_rng , Rng } ;
10
+ use rand:: distr :: Alphanumeric ;
11
+ use rand:: Rng ;
12
12
use std:: convert:: Into ;
13
13
use std:: fmt;
14
14
use std:: io;
@@ -153,7 +153,7 @@ impl Mock {
153
153
assert_on_drop : bool ,
154
154
) -> Mock {
155
155
let inner = InnerMock {
156
- id : thread_rng ( )
156
+ id : rand :: rng ( )
157
157
. sample_iter ( & Alphanumeric )
158
158
. map ( char:: from)
159
159
. take ( 24 )
Original file line number Diff line number Diff line change 2
2
extern crate serde_json;
3
3
4
4
use mockito:: { Matcher , Server , ServerOpts } ;
5
- use rand:: distributions :: Alphanumeric ;
5
+ use rand:: distr :: Alphanumeric ;
6
6
use rand:: Rng ;
7
7
use std:: fmt:: Display ;
8
8
use std:: fs;
@@ -1017,7 +1017,7 @@ fn test_all_of_missing_match_header() {
1017
1017
#[ test]
1018
1018
fn test_large_utf8_body ( ) {
1019
1019
let mut s = Server :: new ( ) ;
1020
- let mock_body: String = rand:: thread_rng ( )
1020
+ let mock_body: String = rand:: rng ( )
1021
1021
. sample_iter ( & Alphanumeric )
1022
1022
. map ( char:: from)
1023
1023
. take ( 3 * 1024 ) // Must be larger than the request read buffer
You can’t perform that action at this time.
0 commit comments