Skip to content

Commit 7bcf40a

Browse files
committed
Fix fallout from rustup
1 parent 23646e6 commit 7bcf40a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/default_trait_access.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl<'tcx> LateLintPass<'tcx> for DefaultTraitAccess {
4242
if let QPath::Resolved(None, _path) = qpath;
4343
then {
4444
let expr_ty = cx.typeck_results().expr_ty(expr);
45-
if let ty::Adt(def, ..) = expr_ty.kind {
45+
if let ty::Adt(def, ..) = expr_ty.kind() {
4646
// TODO: Work out a way to put "whatever the imported way of referencing
4747
// this type in this file" rather than a fully-qualified type.
4848
let replacement = format!("{}::default()", cx.tcx.def_path_str(def.did));

0 commit comments

Comments
 (0)