File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,10 @@ pub type c_char = i8;
16
16
/// We can replace this with `core::ffi::c_void` once we update the rustc version to >=1.30.0.
17
17
#[ repr( u8 ) ]
18
18
pub enum c_void {
19
- #[ doc( hidden) ] __variant1,
20
- #[ doc( hidden) ] __variant2,
19
+ #[ doc( hidden) ]
20
+ __variant1,
21
+ #[ doc( hidden) ]
22
+ __variant2,
21
23
}
22
24
23
25
impl fmt:: Debug for c_void {
@@ -43,13 +45,12 @@ impl AlignedType {
43
45
#[ cfg( all( feature = "std" , not( rust_secp_no_symbol_renaming) ) ) ]
44
46
pub ( crate ) const ALIGN_TO : usize = mem:: align_of :: < AlignedType > ( ) ;
45
47
46
-
47
48
#[ cfg( test) ]
48
49
mod tests {
49
50
extern crate libc;
50
- use std:: os:: raw;
51
- use std:: mem;
52
51
use std:: any:: TypeId ;
52
+ use std:: mem;
53
+ use std:: os:: raw;
53
54
use { types, AlignedType } ;
54
55
55
56
#[ test]
@@ -63,11 +64,10 @@ mod tests {
63
64
}
64
65
}
65
66
66
-
67
67
#[ doc( hidden) ]
68
68
#[ cfg( target_arch = "wasm32" ) ]
69
69
pub fn sanity_checks_for_wasm ( ) {
70
- use std :: mem:: { size_of , align_of } ;
70
+ use core :: mem:: { align_of , size_of } ;
71
71
extern "C" {
72
72
pub static WASM32_INT_SIZE : c_uchar ;
73
73
pub static WASM32_INT_ALIGN : c_uchar ;
You can’t perform that action at this time.
0 commit comments