Skip to content

Commit f0cb8a7

Browse files
dswijxFrednet
andauthored
Update doc/common_tools_writing_lints.md
Add missing import `paths` for the doc example. Co-authored-by: Fridtjof Stoldt <xFrednet@gmail.com>
1 parent 86e92c0 commit f0cb8a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/common_tools_writing_lints.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl LateLintPass<'_> for MyStructLint {
7878
There are three ways to do this, depending on if the target trait has a diagnostic item, lang item or neither.
7979

8080
```rust
81-
use clippy_utils::{implements_trait, is_trait_method, match_trait_method};
81+
use clippy_utils::{implements_trait, is_trait_method, match_trait_method, paths};
8282
use rustc_span::symbol::sym;
8383

8484
impl LateLintPass<'_> for MyStructLint {

0 commit comments

Comments
 (0)