Skip to content

Commit f31a3ad

Browse files
committed
fix redundant type
Signed-off-by: Jay Lee <[email protected]>
1 parent 3807518 commit f31a3ad

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

grpc-sys/bindings/x86_64-unknown-linux-gnu-bindings.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,6 @@ pub const GRPC_DEFAULT_SSL_ROOTS_FILE_PATH_ENV_VAR: &'static [u8; 33usize] =
143143
pub const GRPC_GOOGLE_CREDENTIALS_ENV_VAR: &'static [u8; 31usize] =
144144
b"GOOGLE_APPLICATION_CREDENTIALS\0";
145145
pub const GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX: u32 = 4;
146-
pub type __uint8_t = ::std::os::raw::c_uchar;
147-
pub type __int32_t = ::std::os::raw::c_int;
148-
pub type __uint32_t = ::std::os::raw::c_uint;
149-
pub type __int64_t = ::std::os::raw::c_long;
150146
#[repr(u32)]
151147
#[doc = " The various compression algorithms supported by gRPC"]
152148
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]

scripts/generate-bindings.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
export UPDATE_BIND=1
88
cargo build -p grpcio-sys --target x86_64-unknown-linux-gnu
99
rustfmt grpc-sys/bindings/*
10+
if [ "$(uname)" == "Linux" ]; then
11+
sed -i '/pub type .*= ::std::os::raw::.*/d' grpc-sys/bindings/*
12+
fi

0 commit comments

Comments
 (0)