Unnamed repository; edit this file 'description' to name the repository.
clippy: Enable `needless_doctest_main` rule
Tetsuharu Ohzeki 2024-02-09
parent 3365e50 · commit a3e60e7
-rw-r--r--Cargo.toml1
-rw-r--r--crates/ide/src/inlay_hints/implicit_drop.rs10
2 files changed, 4 insertions, 7 deletions
diff --git a/Cargo.toml b/Cargo.toml
index d562a90b00..ebda681d9d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -170,7 +170,6 @@ useless_asref = "allow"
## Following lints should be tackled at some point
borrowed_box = "allow"
derived_hash_with_manual_eq = "allow"
-needless_doctest_main = "allow"
too_many_arguments = "allow"
type_complexity = "allow"
wrong_self_convention = "allow"
diff --git a/crates/ide/src/inlay_hints/implicit_drop.rs b/crates/ide/src/inlay_hints/implicit_drop.rs
index 3104b85768..8d9ad5bda1 100644
--- a/crates/ide/src/inlay_hints/implicit_drop.rs
+++ b/crates/ide/src/inlay_hints/implicit_drop.rs
@@ -1,10 +1,8 @@
//! Implementation of "implicit drop" inlay hints:
-//! ```no_run
-//! fn main() {
-//! let x = vec![2];
-//! if some_condition() {
-//! /* drop(x) */return;
-//! }
+//! ```ignore
+//! let x = vec![2];
+//! if some_condition() {
+//! /* drop(x) */return;
//! }
//! ```
use hir::{