Skip to content

Commit

Permalink
Ignore missing_panics_doc pedantic clippy lint
Browse files Browse the repository at this point in the history
    warning: docs for function which may panic missing `# Panics` section
       --> src/lib.rs:836:5
        |
    836 |     pub fn new(ch: char, spacing: Spacing) -> Self {
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
    note: first possible panic found here
       --> src/lib.rs:846:13
        |
    846 |             panic!("unsupported proc macro punctuation character {:?}", ch);
        |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
        = note: `-W clippy::missing-panics-doc` implied by `-W clippy::pedantic`
        = help: to override `-W clippy::pedantic` add `#[allow(clippy::missing_panics_doc)]`
  • Loading branch information
dtolnay committed Oct 7, 2024
1 parent 27061af commit d60aaad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
clippy::let_underscore_untyped,
clippy::manual_assert,
clippy::manual_range_contains,
clippy::missing_panics_doc,
clippy::missing_safety_doc,
clippy::must_use_candidate,
clippy::needless_doctest_main,
Expand Down

0 comments on commit d60aaad

Please sign in to comment.