Skip to content

Commit

Permalink
Work around empty_docs clippy lint in test
Browse files Browse the repository at this point in the history
    warning: empty doc comment
       --> tests/test_item.rs:174:17
        |
    174 |                 #[doc = $doc]
        |                 ^^^^^^^^^^^^^
    ...
    180 |     doc_expr!(stringify!());
        |     ----------------------- in this macro invocation
        |
        = help: consider removing or filling it
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
        = note: `-W clippy::empty-docs` implied by `-W clippy::all`
        = help: to override `-W clippy::all` add `#[allow(clippy::empty_docs)]`
        = note: this warning originates in the macro `doc_expr` (in Nightly builds, run with -Z macro-backtrace for more info)
  • Loading branch information
dtolnay committed Feb 28, 2024
1 parent ed844dc commit 14872ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ mod test_doc_expr {
};
}

doc_expr!(stringify!());
doc_expr!(stringify!(...));

#[test]
fn test_doc_expr() {
Expand Down

0 comments on commit 14872ad

Please sign in to comment.