Apply suggestion

This commit is contained in:
blyxyas 2023-09-02 11:23:27 +02:00
parent 2a3f75b0b8
commit e1a3f635fc
No known key found for this signature in database
GPG key ID: 4D38170B5A2FC334

View file

@ -76,7 +76,7 @@ If neither diagnostic item nor a language item is available, we can use
[`clippy_utils::paths`][paths] with the `match_trait_method` to determine trait
implementation.
> **Note**: This approach should be avoided if possible, the best thing to do would be to make a PR to [`rust-lang/rust`][rust].
> **Note**: This approach should be avoided if possible, the best thing to do would be to make a PR to [`rust-lang/rust`][rust] adding a diagnostic item.
Below, we check if the given `expr` implements the `Iterator`'s trait method `cloned` :