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.
1 parent 9fc93dd commit 1f63044Copy full SHA for 1f63044
clippy_lints/src/needless_path_new.rs
@@ -107,6 +107,9 @@ fn check_arguments<'tcx>(
107
let inputs_and_output = fn_sig.inputs().iter().copied().chain([fn_sig.output()]);
108
inputs_and_output.filter(|i| i.contains(*g)).count() < 2
109
})
110
+ // don't want to mess with the output type, since that probably has some additional
111
+ // restrictions imposed from the outside, which we don't want to bother checking
112
+ .filter(|g| !fn_sig.output().contains(*g))
113
.collect();
114
dbg!(&generic_args_we_can_change);
115
0 commit comments