From 757f5bb3dcb46e4954cf69e6c47c1ae1806f2a9b Mon Sep 17 00:00:00 2001 From: ninad Date: Sun, 14 Apr 2024 20:29:30 +0530 Subject: [PATCH] Fix formatting --- compiler/rustc_ast_lowering/src/format.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/rustc_ast_lowering/src/format.rs b/compiler/rustc_ast_lowering/src/format.rs index a37e0832b6f..2d8f4626752 100644 --- a/compiler/rustc_ast_lowering/src/format.rs +++ b/compiler/rustc_ast_lowering/src/format.rs @@ -64,7 +64,9 @@ impl<'hir> LoweringContext<'_, 'hir> { let isize_max = usize_max >> 1; match ty { // unsuffixed integer literals are assumed to be i32's - LitIntType::Unsuffixed => (n <= i32::MAX as u128).then_some(Symbol::intern(&n.to_string())), + LitIntType::Unsuffixed => { + (n <= i32::MAX as u128).then_some(Symbol::intern(&n.to_string())) + } LitIntType::Signed(int_ty) => { let max_literal = int_ty_max(int_ty).unwrap_or(isize_max); (n <= max_literal).then_some(Symbol::intern(&n.to_string()))