File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,7 @@ implementation.
78
78
79
79
> ** Note** : This approach should be avoided if possible, the best thing to do would be to make a PR to [ ` rust-lang/rust ` ] [ rust ] .
80
80
81
- Below, we check if the given ` expr ` implements ` tokio ` 's
82
- [ ` AsyncReadExt ` ] [ AsyncReadExt ] trait:
81
+ Below, we check if the given ` expr ` implements the ` Iterator ` 's trait method ` cloned ` :
83
82
84
83
``` rust
85
84
use clippy_utils :: {match_trait_method, paths};
@@ -95,7 +94,6 @@ impl LateLintPass<'_> for CheckTokioAsyncReadExtTrait {
95
94
}
96
95
```
97
96
98
- [ AsyncReadExt ] : https://docs.rs/tokio/latest/tokio/io/trait.AsyncReadExt.html
99
97
[ DefId ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/def_id/struct.DefId.html
100
98
[ diagnostic_items ] : https://rustc-dev-guide.rust-lang.org/diagnostics/diagnostic-items.html
101
99
[ lang_items ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/lang_items/struct.LanguageItems.html
@@ -105,4 +103,4 @@ impl LateLintPass<'_> for CheckTokioAsyncReadExtTrait {
105
103
[ symbol_index ] : https://doc.rust-lang.org/beta/nightly-rustc/rustc_span/symbol/sym/index.html
106
104
[ TyCtxt ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/context/struct.TyCtxt.html
107
105
[ using_diagnostic_items ] : https://rustc-dev-guide.rust-lang.org/diagnostics/diagnostic-items.html#using-diagnostic-items
108
- [ rust ] : https://github.com/rust-lang/rust
106
+ [ rust ] : https://github.com/rust-lang/rust
You can’t perform that action at this time.
0 commit comments