Skip to content

Commit

Permalink
Ignore needless_doctest_main clippy lint
Browse files Browse the repository at this point in the history
    warning: needless `fn main` in doctest
      --> src/lib.rs:22:5
       |
    22 |   //! fn main() {
       |  _____^
    23 | | //!     let mut buffer = itoa::Buffer::new();
    24 | | //!     let printed = buffer.format(128u64);
    25 | | //!     assert_eq!(printed, "128");
    26 | | //! }
       | |_____^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
       = note: `-W clippy::needless-doctest-main` implied by `-W clippy::all`
       = help: to override `-W clippy::all` add `#[allow(clippy::needless_doctest_main)]`
  • Loading branch information
dtolnay committed Sep 13, 2023
1 parent 03549a2 commit 633b6ae
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 @@ -37,6 +37,7 @@
clippy::cast_possible_truncation,
clippy::expl_impl_clone_on_copy,
clippy::must_use_candidate,
clippy::needless_doctest_main,
clippy::unreadable_literal
)]

Expand Down

0 comments on commit 633b6ae

Please sign in to comment.