We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
clippy_utils::path
1 parent a276cd2 commit 5405152Copy full SHA for 5405152
doc/common_tools_writing_lints.md
@@ -105,6 +105,7 @@ impl LateLintPass<'_> for MyStructLint {
105
}
106
107
// 3. Using the type path
108
+ // This method should be avoided if possible
109
if match_def_path(cx, def_id, &paths::RESULT) {
110
// The type is a `core::result::Result`
111
@@ -142,6 +143,7 @@ impl LateLintPass<'_> for MyStructLint {
142
143
144
// 3. Using the type path with the expression
145
// we use `match_trait_method` function from Clippy's utils
146
+ // (This method should be avoided if possible)
147
if match_trait_method(cx, expr, &paths::INTO) {
148
// `expr` implements `Into` trait
149
0 commit comments