Re: [RFC PATCH v7 3/4] rust: add minimal IIO subsystem abstractions

From: Igor Korotin

Date: Sun Nov 22 2026 - 16:26:58 EST


Clippy shows two issues in iio.rs:

1. Line 332 -- ..unsafe { zeroed() } in VTABLE. The SAFETY reasoning is
already written above the const, but clippy's undocumented_unsafe_blocks
wants its own comment immediately above that specific line.

2. Line 408 -- unsafe { (&*priv_ptr).channels() }, drop the &:
unsafe { (*priv_ptr).channels() }. needless_borrow, no semantic change.

Cheers
Igor