Skip to content

Commit af5b6e8

Browse files
docs(trait_checking): import the right function (#14891)
`is_trait_method` is not even used in this codeblock, whereas `implements_trait` is used but not imported (not sure if this is _actually_ a "changelog: none", since the documentation is at least contributor-facing) changelog: none
2 parents 1822006 + aa667f4 commit af5b6e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/src/development/trait_checking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ providing the `LateContext` (`cx`), our expression at hand, and
1717
the symbol of the trait in question:
1818

1919
```rust
20-
use clippy_utils::is_trait_method;
20+
use clippy_utils::ty::implements_trait;
2121
use rustc_hir::Expr;
2222
use rustc_lint::{LateContext, LateLintPass};
2323
use rustc_span::symbol::sym;

0 commit comments

Comments
 (0)