Skip to content

Commit

Permalink
leave keywords defs in capital letters
Browse files Browse the repository at this point in the history
  • Loading branch information
lana-shanghai committed Jun 10, 2024
1 parent 79bab76 commit 96acdc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/hir/src/hir_def/ident.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ pub mod kw {
(U64, "u64"),
(U128, "u128"),
(U256, "u256"),
(Usize, "usize"),
(USIZE, "usize"),
(I8, "i8"),
(I16, "i16"),
(I32, "i32"),
(I64, "i64"),
(I128, "i128"),
(I256, "i256"),
(Isize, "isize"),
(ISIZE, "isize"),
}
}
4 changes: 2 additions & 2 deletions crates/hir/src/hir_def/prim_ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl IntTy {
IntTy::I64 => kw::I64,
IntTy::I128 => kw::I128,
IntTy::I256 => kw::I256,
IntTy::Isize => kw::Isize,
IntTy::Isize => kw::ISIZE,
}
}
}
Expand All @@ -86,7 +86,7 @@ impl UintTy {
UintTy::U64 => kw::U64,
UintTy::U128 => kw::U128,
UintTy::U256 => kw::U256,
UintTy::Usize => kw::Usize,
UintTy::Usize => kw::USIZE,
}
}
}

0 comments on commit 96acdc4

Please sign in to comment.