Skip to content

Commit

Permalink
Update doc/common_tools_writing_lints.md
Browse files Browse the repository at this point in the history
Add missing import `paths` for the doc example.

Co-authored-by: Fridtjof Stoldt <xFrednet@gmail.com>
  • Loading branch information
dswij and xFrednet committed Aug 26, 2021
1 parent 86e92c0 commit f0cb8a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/common_tools_writing_lints.md
Expand Up @@ -78,7 +78,7 @@ impl LateLintPass<'_> for MyStructLint {
There are three ways to do this, depending on if the target trait has a diagnostic item, lang item or neither.

```rust
use clippy_utils::{implements_trait, is_trait_method, match_trait_method};
use clippy_utils::{implements_trait, is_trait_method, match_trait_method, paths};
use rustc_span::symbol::sym;

impl LateLintPass<'_> for MyStructLint {
Expand Down

0 comments on commit f0cb8a7

Please sign in to comment.