]> 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>
Tue, 17 Sep 2024 20:16:41 +0000 (22:16 +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

(cherry picked from commit dc3c048b49c5c949836367176b81054e2fbd828e)

rust/src/detect/iprep.rs

index 6604628edd13404f471eeaca09016e5068ce5aa9..b2827368be1df6f4949b1d00ea9209bb86625dd6 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).