Skip to content

Commit 5a80f92

Browse files
committed
clippy: fix warning from needless_doctest_main
1 parent 5f8fc3d commit 5a80f92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ platform-info = "2"
4141
4242
```rust
4343
*/
44-
#![doc = include_str!("../examples/ex.rs")]
44+
#![cfg_attr(doc, doc = include_str!("../examples/ex.rs"))]
4545
/*!
4646
```
4747

0 commit comments

Comments
 (0)