mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-17 06:26:55 +00:00
clippy
This commit is contained in:
parent
8b19845ffb
commit
4b3a87f886
@ -26,13 +26,8 @@ pub(super) fn check<'tcx>(
|
||||
let is_default_eq = match &u_arg.kind {
|
||||
hir::ExprKind::Path(qpath) => {
|
||||
if let Some(repl_def_id) = cx.qpath_res(qpath, u_arg.hir_id).opt_def_id() {
|
||||
if is_diag_trait_item(cx, repl_def_id, sym::Default)
|
||||
is_diag_trait_item(cx, repl_def_id, sym::Default)
|
||||
|| is_default_equivalent_ctor(cx, repl_def_id, qpath)
|
||||
{
|
||||
true
|
||||
} else {
|
||||
false
|
||||
}
|
||||
} else {
|
||||
false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user