Skip to content

Commit 1ee37bf

Browse files
committed
let-chain fmt
1 parent 6a2d9b4 commit 1ee37bf

File tree

1 file changed

+1
-2
lines changed
  • compiler/rustc_hir_typeck/src

1 file changed

+1
-2
lines changed

compiler/rustc_hir_typeck/src/expr.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -2685,8 +2685,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
26852685
let mod_id = self.tcx.parent_module(id).to_def_id();
26862686
let (ty, unwrap) = if let ty::Adt(def, args) = expr_t.kind()
26872687
&& (self.tcx.is_diagnostic_item(sym::Result, def.did())
2688-
|| self.tcx.is_diagnostic_item(sym::Option, def.did())
2689-
)
2688+
|| self.tcx.is_diagnostic_item(sym::Option, def.did()))
26902689
&& let Some(arg) = args.get(0)
26912690
&& let Some(ty) = arg.as_type()
26922691
{

0 commit comments

Comments
 (0)