Commit 9e7300c 1 parent 6c155b4 commit 9e7300c Copy full SHA for 9e7300c
File tree 1 file changed +3
-13
lines changed
1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change
1
+ #![ allow( dead_code) ] // Keeps our cfg's from becoming too convoluted in here
2
+
1
3
trait Rng {
2
- #[ allow( dead_code) ]
3
4
fn u128 ( ) -> u128 ;
4
-
5
- #[ allow( dead_code) ]
6
5
fn u64 ( ) -> u64 ;
7
-
8
- #[ allow( dead_code) ]
9
6
fn u16 ( ) -> u16 ;
10
7
}
11
8
12
- #[ cfg( any( feature = "v4" , feature = "v7" ) ) ]
13
9
pub ( crate ) fn u128 ( ) -> u128 {
14
10
imp:: RngImp :: u128 ( )
15
11
}
16
12
17
- #[ cfg( feature = "v7" ) ]
18
13
pub ( crate ) fn u64 ( ) -> u64 {
19
14
imp:: RngImp :: u64 ( )
20
15
}
21
16
22
- #[ cfg( any( feature = "v1" , feature = "v6" ) ) ]
23
17
pub ( crate ) fn u16 ( ) -> u16 {
24
18
imp:: RngImp :: u16 ( )
25
19
}
@@ -212,11 +206,7 @@ mod imp {
212
206
}
213
207
}
214
208
215
- #[ cfg( all(
216
- feature = "js" ,
217
- not( feature = "rng-rand" ) ,
218
- not( feature = "rng-getrandom" )
219
- ) ) ]
209
+ #[ cfg( feature = "js" ) ]
220
210
mod webcrypto {
221
211
/*
222
212
This module preserves the stabilized behavior of `uuid` that requires the
You can’t perform that action at this time.
0 commit comments