Skip to content

Commit fca77c0

Browse files
committed
docs and imports
1 parent 93deced commit fca77c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/doc/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use rustc_hir::{AnonConst, Expr};
1717
use rustc_lint::{LateContext, LateLintPass};
1818
use rustc_middle::hir::nested_filter;
1919
use rustc_middle::lint::in_external_macro;
20-
use rustc_middle::ty::{self};
20+
use rustc_middle::ty;
2121
use rustc_resolve::rustdoc::{
2222
add_doc_fragment, attrs_to_doc_fragments, main_body_opts, source_span_for_markdown_range, span_of_fragments,
2323
DocFragment,
@@ -343,7 +343,7 @@ declare_clippy_lint! {
343343
/// ### What it does
344344
/// Detects documentation that is empty.
345345
/// ### Why is this bad?
346-
/// It is unlikely that there is any reason to have empty documentation for an item
346+
/// Empty docs clutter code without adding value, reducing readability and maintainability.
347347
/// ### Example
348348
/// ```no_run
349349
/// ///

0 commit comments

Comments
 (0)