Skip to content

Commit 2b6e8a9

Browse files
committed
wip
1 parent 05a7c12 commit 2b6e8a9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

clippy_lints/src/use_crate_prefix_for_self_imports.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,16 @@ declare_clippy_lint! {
2121
///
2222
/// ### Example
2323
/// ```no_run
24+
/// mod foo {
25+
/// pub fn bar(){}
26+
/// }
2427
/// use foo::bar; // foo is a module in the current crate
2528
/// ```
2629
/// Use instead:
2730
/// ```no_run
31+
/// mod foo {
32+
/// pub fn bar(){}
33+
/// }
2834
/// use crate::foo::bar;
2935
/// ```
3036
#[clippy::version = "1.84.0"]

0 commit comments

Comments
 (0)