Message ID | 20250103-lifetime-fix-v2-3-63902dc8cae1@linaro.org |
---|---|
State | New |
Headers | show |
Series | bindings: rust: fix some compiler + clippy warnings | expand |
diff --git a/bindings/rust/libgpiod/src/event_buffer.rs b/bindings/rust/libgpiod/src/event_buffer.rs index 68d6e2f9a875e6b55a2df163cc99a0b9594f51ff..13fa7ba2c8870e0a325e251c073d6d73bb8c4374 100644 --- a/bindings/rust/libgpiod/src/event_buffer.rs +++ b/bindings/rust/libgpiod/src/event_buffer.rs @@ -9,15 +9,14 @@ use super::{ request::{Event, Request}, Error, OperationType, Result, }; /// Line edge events /// /// An iterator over the elements of type `Event`. - pub struct Events<'a> { buffer: &'a mut Buffer, read_index: usize, len: usize, } impl<'a> Events<'a> {
clippy warned about this: warning: empty line after doc comment --> libgpiod/src/event_buffer.rs:15:1 | 15 | / /// An iterator over the elements of type `Event`. 16 | | | |_ 17 | pub struct Events<'a> { | --------------------- the comment documents this struct | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default = help: if the empty line is unintentional remove it Signed-off-by: Erik Schilling <erik.schilling@linaro.org> --- bindings/rust/libgpiod/src/event_buffer.rs | 1 - 1 file changed, 1 deletion(-)