File tree Expand file tree Collapse file tree 1 file changed +2
-19
lines changed Expand file tree Collapse file tree 1 file changed +2
-19
lines changed Original file line number Diff line number Diff line change 1
1
#![ allow( non_camel_case_types) ]
2
- use core:: fmt;
3
2
4
3
pub type c_int = i32 ;
5
4
pub type c_uchar = u8 ;
@@ -10,23 +9,7 @@ pub type size_t = usize;
10
9
/// The way we use it makes it fine either way but this type shouldn't be used outside of the library.
11
10
pub type c_char = i8 ;
12
11
13
- /// This is an exact copy of <https://doc.rust-lang.org/core/ffi/enum.c_void.html>
14
- /// It should be Equivalent to C's void type when used as a pointer.
15
- ///
16
- /// We can replace this with `core::ffi::c_void` once we update the rustc version to >=1.30.0.
17
- #[ repr( u8 ) ]
18
- pub enum c_void {
19
- #[ doc( hidden) ]
20
- __variant1,
21
- #[ doc( hidden) ]
22
- __variant2,
23
- }
24
-
25
- impl fmt:: Debug for c_void {
26
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
27
- f. pad ( "c_void" )
28
- }
29
- }
12
+ pub use core:: ffi:: c_void;
30
13
31
14
/// A type that is as aligned as the biggest alignment for fundamental types in C
32
15
/// since C11 that means as aligned as `max_align_t` is.
@@ -46,7 +29,7 @@ impl AlignedType {
46
29
}
47
30
48
31
#[ cfg( all( feature = "std" , not( rust_secp_no_symbol_renaming) ) ) ]
49
- pub ( crate ) const ALIGN_TO : usize = :: core:: mem:: align_of :: < AlignedType > ( ) ;
32
+ pub ( crate ) const ALIGN_TO : usize = core:: mem:: align_of :: < AlignedType > ( ) ;
50
33
51
34
#[ cfg( test) ]
52
35
mod tests {
You can’t perform that action at this time.
0 commit comments