Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
fastfailures committed Jan 29, 2025
1 parent dbd4079 commit 8f2105f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,15 @@ impl TerritoryCode {
pub fn calling_codes(&self) -> CallingCodes {
macro_rules! single_calling_code {
($value:literal) => {
CallingCodes(CallingCodesInner::Single([NonZeroU32::new($value).unwrap()]))
}
CallingCodes(CallingCodesInner::Single(
[NonZeroU32::new($value).unwrap()],
))
};
}
macro_rules! cc {
($value:literal) => {
NonZeroU32::new($value).unwrap()
}
};
}
match *self {
Self::US => single_calling_code!(1),
Expand Down

0 comments on commit 8f2105f

Please sign in to comment.