Skip to content

Commit

Permalink
Ignore missing_safety_doc clippy lint
Browse files Browse the repository at this point in the history
    warning: unsafe function's docs miss `# Safety` section
        --> src/lib.rs:1240:5
         |
    1240 |     pub unsafe fn from_str_unchecked(repr: &str) -> Self {
         |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
         = note: `-W clippy::missing-safety-doc` implied by `-W clippy::all`
         = help: to override `-W clippy::all` add `#[allow(clippy::missing_safety_doc)]`
  • Loading branch information
dtolnay committed Sep 13, 2023
1 parent 7017480 commit 2e96778
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 @@ -98,6 +98,7 @@
clippy::let_underscore_untyped,
clippy::manual_assert,
clippy::manual_range_contains,
clippy::missing_safety_doc,
clippy::must_use_candidate,
clippy::needless_doctest_main,
clippy::new_without_default,
Expand Down

0 comments on commit 2e96778

Please sign in to comment.