Skip to content

Commit 1b0dba6

Browse files
committed
Unrelated change for formatting (CI doesn't check the formatting)
1 parent 003bfe4 commit 1b0dba6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: src/sys/socket/mod.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,11 @@ impl SockProtocol {
257257
#[cfg(linux_android)]
258258
#[allow(non_upper_case_globals)]
259259
#[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-
260+
pub const EthIp: SockProtocol = unsafe {
261+
std::mem::transmute::<i32, SockProtocol>(
262+
(libc::ETH_P_IP as u16).to_be() as i32,
263+
)
264+
};
262265
}
263266
#[cfg(linux_android)]
264267
libc_bitflags! {

0 commit comments

Comments
 (0)