about summary refs log tree commit diff
diff options
context:
space:
mode:
authorreez12g <reez12g@gmail.com>2023-09-11 11:35:43 +0900
committerreez12g <reez12g@gmail.com>2023-09-11 11:35:43 +0900
commit8bf075f2d00751c2910bc5ce69374efa82d8b0b9 (patch)
treeca18ee5ce90116f73b7ca86a3f8f1ca17bf54186
parent6672b862c456f0dad14f7cab0d4cae6f7dab89c0 (diff)
downloadrust-8bf075f2d00751c2910bc5ce69374efa82d8b0b9.tar.gz
rust-8bf075f2d00751c2910bc5ce69374efa82d8b0b9.zip
make compiler/rustc_hir_typeck/src/generator_interior/mod.rs fmted
-rw-r--r--compiler/rustc_hir_typeck/src/generator_interior/mod.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/compiler/rustc_hir_typeck/src/generator_interior/mod.rs b/compiler/rustc_hir_typeck/src/generator_interior/mod.rs
index 38d7d5be97e..566dc09cdd2 100644
--- a/compiler/rustc_hir_typeck/src/generator_interior/mod.rs
+++ b/compiler/rustc_hir_typeck/src/generator_interior/mod.rs
@@ -643,17 +643,14 @@ fn check_must_not_suspend_ty<'tcx>(
         }
         ty::Array(ty, len) => {
             let descr_pre = &format!("{}array{} of ", data.descr_pre, plural_suffix);
-            let target_usize = len.try_eval_target_usize(fcx.tcx, fcx.param_env).unwrap_or(0) as usize;
+            let target_usize =
+                len.try_eval_target_usize(fcx.tcx, fcx.param_env).unwrap_or(0) as usize;
             let plural_len = target_usize.saturating_add(1);
             check_must_not_suspend_ty(
                 fcx,
                 ty,
                 hir_id,
-                SuspendCheckData {
-                    descr_pre,
-                    plural_len,
-                    ..data
-                },
+                SuspendCheckData { descr_pre, plural_len, ..data },
             )
         }
         // If drop tracking is enabled, we want to look through references, since the referent