mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +00:00
clippy: Enable needless_doctest_main
rule
This commit is contained in:
parent
3365e50180
commit
a3e60e7f7a
2 changed files with 4 additions and 7 deletions
|
@ -170,7 +170,6 @@ useless_asref = "allow"
|
||||||
## Following lints should be tackled at some point
|
## Following lints should be tackled at some point
|
||||||
borrowed_box = "allow"
|
borrowed_box = "allow"
|
||||||
derived_hash_with_manual_eq = "allow"
|
derived_hash_with_manual_eq = "allow"
|
||||||
needless_doctest_main = "allow"
|
|
||||||
too_many_arguments = "allow"
|
too_many_arguments = "allow"
|
||||||
type_complexity = "allow"
|
type_complexity = "allow"
|
||||||
wrong_self_convention = "allow"
|
wrong_self_convention = "allow"
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
//! Implementation of "implicit drop" inlay hints:
|
//! Implementation of "implicit drop" inlay hints:
|
||||||
//! ```no_run
|
//! ```ignore
|
||||||
//! fn main() {
|
//! let x = vec![2];
|
||||||
//! let x = vec![2];
|
//! if some_condition() {
|
||||||
//! if some_condition() {
|
//! /* drop(x) */return;
|
||||||
//! /* drop(x) */return;
|
|
||||||
//! }
|
|
||||||
//! }
|
//! }
|
||||||
//! ```
|
//! ```
|
||||||
use hir::{
|
use hir::{
|
||||||
|
|
Loading…
Reference in a new issue