We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5035f4c commit b1a3e08Copy full SHA for b1a3e08
src/sys/termios.rs
@@ -941,17 +941,8 @@ mod test {
941
c_oflag: 0xd00d,
942
c_cflag: 0x6642,
943
c_lflag: 0x1234,
944
- #[cfg(any(linux_android, target_os = "haiku"))]
945
- c_line: 0x00,
946
c_cc: [0; NCCS],
947
- #[cfg(not(target_env = "musl"))]
948
- c_ispeed: 0,
949
950
- c_ospeed: 0,
951
- #[cfg(target_env = "musl")]
952
- __c_ispeed: 0,
953
954
- __c_ospeed: 0,
+ ..unsafe { std::mem::zeroed() }
955
};
956
957
let mut attrs: Termios = original.into();
0 commit comments