Skip to content

Commit a3e60e7

Browse files
clippy: Enable needless_doctest_main rule
1 parent 3365e50 commit a3e60e7

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ useless_asref = "allow"
170170
## Following lints should be tackled at some point
171171
borrowed_box = "allow"
172172
derived_hash_with_manual_eq = "allow"
173-
needless_doctest_main = "allow"
174173
too_many_arguments = "allow"
175174
type_complexity = "allow"
176175
wrong_self_convention = "allow"

crates/ide/src/inlay_hints/implicit_drop.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
//! Implementation of "implicit drop" inlay hints:
2-
//! ```no_run
3-
//! fn main() {
4-
//! let x = vec![2];
5-
//! if some_condition() {
6-
//! /* drop(x) */return;
7-
//! }
2+
//! ```ignore
3+
//! let x = vec![2];
4+
//! if some_condition() {
5+
//! /* drop(x) */return;
86
//! }
97
//! ```
108
use hir::{

0 commit comments

Comments
 (0)