mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +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
|
@ -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::{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue