Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore needless_doctest_main clippy lint
warning: needless `fn main` in doctest --> unindent/src/lib.rs:24:5 | 24 | //! use unindent::unindent; | _____^ 25 | | //! 26 | | //! fn main() { 27 | | //! let indented = " ... | 30 | | //! assert_eq!("line one\nline two", unindent(indented)); 31 | | //! } | |_____^ | = 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)]` warning: needless `fn main` in doctest --> unindent/src/lib.rs:38:5 | 38 | //! use unindent::Unindent; | _____^ 39 | | //! 40 | | //! fn main() { 41 | | //! let indented = format!(" ... | 44 | | //! assert_eq!("line one\nline two", indented.unindent()); 45 | | //! } | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
- Loading branch information