We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c75fa2 commit cd28a9bCopy full SHA for cd28a9b
src/lib.rs
@@ -211,7 +211,7 @@ impl Chip {
211
/// Open the GPIO Chip at the provided path (e.g. `/dev/gpiochip<N>`)
212
pub fn new<P: AsRef<Path>>(path: P) -> Result<Chip> {
213
let f = File::open(path.as_ref())?;
214
- let mut info: ffi::gpiochip_info = unsafe { mem::MaybeUninit::uninit().assume_init() };
+ let mut info: ffi::gpiochip_info = unsafe { mem::zeroed() };
215
ffi::gpio_get_chipinfo_ioctl(f.as_raw_fd(), &mut info)?;
216
217
Ok(Chip {
0 commit comments