]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust/detect: fix too_long_first_doc_paragraph clippy warning
authorPhilippe Antoine <pantoine@oisf.net>
Mon, 9 Sep 2024 09:09:52 +0000 (11:09 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 11 Sep 2024 07:53:03 +0000 (09:53 +0200)
warning: first doc comment paragraph is too long
  --> src/detect/iprep.rs:57:1
   |
57 | / /// value matching is done use `DetectUintData` logic.
58 | | /// isset matching is done using special `DetectUintData` value ">= 0"
59 | | /// isnotset matching bypasses `DetectUintData` and is handled directly
60 | | /// in the match function (in C).
   | |_
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_long_first_doc_paragraph
   = note: `#[warn(clippy::too_long_first_doc_paragraph)]` on by default
help: add an empty line

rust/src/detect/iprep.rs

index f4082683c384c1651d85cde93eb97a255d3c4e71..e403d168c8d8861227d082680188b639c344d35e 100644 (file)
@@ -55,6 +55,7 @@ impl std::str::FromStr for DetectIPRepDataCmd {
 }
 
 /// value matching is done use `DetectUintData` logic.
+///
 /// isset matching is done using special `DetectUintData` value ">= 0"
 /// isnotset matching bypasses `DetectUintData` and is handled directly
 /// in the match function (in C).