diff options
| author | dswij <44697459+dswij@users.noreply.github.com> | 2021-08-26 18:01:41 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-26 18:01:41 +0800 |
| commit | f0cb8a789acfac8a25e60e4e4e791e4c51ecf1ee (patch) | |
| tree | 4b76ceee1d30cb0a2ec889b31689a09b71cd78ae | |
| parent | 86e92c00335672ed1aa3b9e2d7698a464823d118 (diff) | |
| download | rust-f0cb8a789acfac8a25e60e4e4e791e4c51ecf1ee.tar.gz rust-f0cb8a789acfac8a25e60e4e4e791e4c51ecf1ee.zip | |
Update doc/common_tools_writing_lints.md
Add missing import `paths` for the doc example. Co-authored-by: Fridtjof Stoldt <xFrednet@gmail.com>
| -rw-r--r-- | doc/common_tools_writing_lints.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/common_tools_writing_lints.md b/doc/common_tools_writing_lints.md index 45f13de29a3..5f45951090e 100644 --- a/doc/common_tools_writing_lints.md +++ b/doc/common_tools_writing_lints.md @@ -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 { |
