about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRyan Levick <me@ryanlevick.com>2021-06-29 17:41:49 +0200
committerRyan Levick <me@ryanlevick.com>2021-07-06 20:12:55 +0200
commit3a45bb919c5aa1159939f6dfab2f79e55babf84c (patch)
tree1a8259e36fa8a156c28b68736e4a669d68d34879
parent6c87772e3cbeb575aaab2896ded3d16a89d9679d (diff)
downloadrust-3a45bb919c5aa1159939f6dfab2f79e55babf84c.tar.gz
rust-3a45bb919c5aa1159939f6dfab2f79e55babf84c.zip
Fix mis-styled code
-rw-r--r--compiler/rustc_typeck/src/check/upvar.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_typeck/src/check/upvar.rs b/compiler/rustc_typeck/src/check/upvar.rs
index da8e6746b22..1dcc4c2f2b8 100644
--- a/compiler/rustc_typeck/src/check/upvar.rs
+++ b/compiler/rustc_typeck/src/check/upvar.rs
@@ -1829,7 +1829,10 @@ fn var_name(tcx: TyCtxt<'_>, var_hir_id: hir::HirId) -> Symbol {
     tcx.hir().name(var_hir_id)
 }
 
-fn should_do_rust_2021_incompatible_closure_captures_analysis(tcx: TyCtxt<'_>, closure_id: hir::HirId) -> bool {
+fn should_do_rust_2021_incompatible_closure_captures_analysis(
+    tcx: TyCtxt<'_>,
+    closure_id: hir::HirId,
+) -> bool {
     let (level, _) =
         tcx.lint_level_at_node(lint::builtin::RUST_2021_INCOMPATIBLE_CLOSURE_CAPTURES, closure_id);