Fix formatting

This commit is contained in:
ninad 2024-04-14 20:29:30 +05:30
parent 857f5dd475
commit 757f5bb3dc

View File

@ -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()))