Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit eccc2fe

Browse files
committed
fix clippy::unneeded_wildcard_pattern: remove redundant wildcard pattern
1 parent f6b1857 commit eccc2fe

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_save_analysis

1 file changed

+1
-1
lines changed

src/librustc_save_analysis/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ impl<'tcx> SaveContext<'tcx> {
702702
Res::Def(HirDefKind::ConstParam, def_id) => {
703703
Some(Ref { kind: RefKind::Variable, span, ref_id: id_from_def_id(def_id) })
704704
}
705-
Res::Def(HirDefKind::Ctor(_, ..), def_id) => {
705+
Res::Def(HirDefKind::Ctor(..), def_id) => {
706706
// This is a reference to a tuple struct or an enum variant where the def_id points
707707
// to an invisible constructor function. That is not a very useful
708708
// def, so adjust to point to the tuple struct or enum variant itself.

0 commit comments

Comments
 (0)