Clippy reports just over 20 misdemeanours at present, include one that it marks as an error:
error: offset calculation on zero-sized value
--> libcamera-rs/src/framebuffer.rs:207:34
|
207 | NonNull::new(libcamera_framebuffer_planes_data(self.ptr.as_ptr()).offset(index as _)).unwrap(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#zst_offset
= note: `#[deny(clippy::zst_offset)]` on by default
I wonder if it would be agreeable to add a CI job that fails on clippy warnings.
Clippy reports just over 20 misdemeanours at present, include one that it marks as an error:
I wonder if it would be agreeable to add a CI job that fails on clippy warnings.