Skip to content

Commit

Permalink
Ignore clippy::test_attr_in_doctest lint
Browse files Browse the repository at this point in the history
```
error: unit tests in doctest are not executed
  --> futures-test/src/lib.rs:77:5
   |
77 |   /// #[test]
   |  _____^
78 | | /// fn my_test() {
   | |______________^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#test_attr_in_doctest
   = note: `-D clippy::test-attr-in-doctest` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::test_attr_in_doctest)]`
```
  • Loading branch information
taiki-e committed Dec 7, 2023
1 parent 396d429 commit b30ec1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions futures-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
allow(dead_code, unused_assignments, unused_variables)
)
))]
#![allow(clippy::test_attr_in_doctest)]

#[cfg(not(feature = "std"))]
compile_error!(
Expand Down

0 comments on commit b30ec1f

Please sign in to comment.