We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 003bfe4 commit 1b0dba6Copy full SHA for 1b0dba6
src/sys/socket/mod.rs
@@ -257,8 +257,11 @@ impl SockProtocol {
257
#[cfg(linux_android)]
258
#[allow(non_upper_case_globals)]
259
#[cfg(target_endian = "little")]
260
- pub const EthIp: SockProtocol = unsafe { std::mem::transmute::<i32, SockProtocol>((libc::ETH_P_IP as u16).to_be() as i32) };
261
-
+ pub const EthIp: SockProtocol = unsafe {
+ std::mem::transmute::<i32, SockProtocol>(
262
+ (libc::ETH_P_IP as u16).to_be() as i32,
263
+ )
264
+ };
265
}
266
267
libc_bitflags! {
0 commit comments