Make public

This commit is contained in:
Ayaz Hafiz 2023-07-15 20:27:26 -05:00
parent 879719b166
commit a21e016032
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -154,7 +154,7 @@ impl NumericRange {
} }
#[derive(Clone, Copy, PartialEq, Eq, Debug)] #[derive(Clone, Copy, PartialEq, Eq, Debug)]
enum IntSignedness { pub enum IntSignedness {
Unsigned, Unsigned,
Signed, Signed,
} }
@ -184,7 +184,7 @@ pub enum IntLitWidth {
impl IntLitWidth { impl IntLitWidth {
/// Returns the `IntSignedness` and bit width of a variant. /// Returns the `IntSignedness` and bit width of a variant.
fn signedness_and_width(&self) -> (IntSignedness, u32) { pub fn signedness_and_width(&self) -> (IntSignedness, u32) {
use IntLitWidth::*; use IntLitWidth::*;
use IntSignedness::*; use IntSignedness::*;
match self { match self {