File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,30 @@ declare_clippy_lint! {
20
20
/// This helps reduce confusion and maintain a uniform codebase.
21
21
///
22
22
/// ### Example
23
- /// ```no_run
24
- /// use foo::bar; // foo is a module in the current crate
23
+ /// ```rust,ignore
24
+ /// // lib.rs
25
+ /// mod foo;
26
+ /// use foo::bar;
25
27
/// ```
28
+ ///
29
+ /// ```rust,ignore
30
+ /// // foo.rs
31
+ /// #[path = "./foo.rs"]
32
+ /// pub fn bar() {}
33
+ /// ```
34
+ ///
26
35
/// Use instead:
27
- /// ```no_run
36
+ /// ```rust,ignore
37
+ /// // lib.rs
38
+ /// mod foo;
28
39
/// use crate::foo::bar;
29
40
/// ```
41
+ ///
42
+ /// ```rust,ignore
43
+ /// // foo.rs
44
+ /// #[path = "./foo.rs"]
45
+ /// pub fn bar() {}
46
+ /// ```
30
47
#[ clippy:: version = "1.84.0" ]
31
48
pub USE_CRATE_PREFIX_FOR_SELF_IMPORTS ,
32
49
style,
You can’t perform that action at this time.
0 commit comments