Skip to content

Commit bbda648

Browse files
committed
Fixups with new script
1 parent 0bb4dc3 commit bbda648

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

src/fixed_width_ints.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! This module contains type aliases for C's fixed-width integer types .
22
//!
33
//! These aliases are deprecated: use the Rust types instead.
4+
use crate::prelude::*;
45

56
#[deprecated(since = "0.2.55", note = "Use i8 instead.")]
67
pub type int8_t = i8;

src/teeos/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
//! when linking is explicitly requested.
55
#![allow(non_camel_case_types)]
66
#![allow(non_snake_case)]
7-
87
// only supported on Rust > 1.59, so we can directly reexport c_void from core.
98
pub use core::ffi::c_void;
109

11-
use Option;
10+
use crate::prelude::*;
1211

1312
pub type c_schar = i8;
1413

src/unix/bsd/netbsdlike/netbsd/riscv64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ s_no_extra_traits! {
2626
}
2727
}
2828

29-
pub(crate) const _ALIGNBYTES: usize = crate::mem::size_of::<c_long>() - 1;
29+
pub(crate) const _ALIGNBYTES: usize = mem::size_of::<c_long>() - 1;
3030

3131
pub const PT_GETREGS: c_int = PT_FIRSTMACH + 0;
3232
pub const PT_SETREGS: c_int = PT_FIRSTMACH + 1;

src/unix/bsd/netbsdlike/openbsd/arm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ pub type c_long = i32;
44
pub type c_ulong = u32;
55
pub type c_char = u8;
66

7-
pub(crate) const _ALIGNBYTES: usize = crate::mem::size_of::<c_double>() - 1;
7+
pub(crate) const _ALIGNBYTES: usize = mem::size_of::<c_double>() - 1;
88

99
pub const _MAX_PAGE_SHIFT: u32 = 12;

src/unix/bsd/netbsdlike/openbsd/powerpc64.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
use crate::prelude::*;
2+
13
pub type c_long = i64;
24
pub type c_ulong = u64;
35
pub type c_char = u8;

src/unix/redox/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ s_no_extra_traits! {
8282

8383
pub struct sockaddr_storage {
8484
pub ss_family: crate::sa_family_t,
85-
__ss_padding:
86-
[u8; 128 - crate::mem::size_of::<sa_family_t>() - crate::mem::size_of::<c_ulong>()],
85+
__ss_padding: [u8; 128 - mem::size_of::<sa_family_t>() - mem::size_of::<c_ulong>()],
8786
__ss_align: c_ulong,
8887
}
8988
}

0 commit comments

Comments
 (0)