Skip to content

Commit

Permalink
Merge pull request #73 from whisperfish/clippy
Browse files Browse the repository at this point in the history
Add and remove some doc comments for clippy
  • Loading branch information
rubdos committed Jul 7, 2024
2 parents 728ee56 + 5eed215 commit 1f54239
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/phone_number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ pub struct Country<'a>(&'a PhoneNumber);
#[derive(Copy, Clone, Eq, PartialEq, Serialize, Deserialize, Hash, Debug)]
#[serde(rename_all = "snake_case")]
pub enum Type {
///
/// Fixed line numbers.
FixedLine,

///
/// Mobile numbers.
Mobile,

/// In some regions (e.g. the USA), it is impossible to distinguish between
Expand All @@ -92,7 +92,7 @@ pub enum Type {
/// Freephone lines.
TollFree,

///
/// Premium rate lines.
PremiumRate,

/// The cost of this call is shared between the caller and the recipient, and
Expand All @@ -111,30 +111,27 @@ pub enum Type {
/// Voice over IP numbers. This includes TSoIP (Telephony Service over IP).
Voip,

///
/// A pager number.
Pager,

/// Used for "Universal Access Numbers" or "Company Numbers". They may be
/// further routed to specific offices, but allow one number to be used for a
/// company.
Uan,

///
/// Emergency numbers.
Emergency,

/// Used for "Voice Mail Access Numbers".
Voicemail,

///
/// An abbreviated number, such as short codes like "10000".
ShortCode,

///
StandardRate,

///
Carrier,

///
NoInternational,

/// A phone number is of type UNKNOWN when it does not fit any of the known
Expand Down

0 comments on commit 1f54239

Please sign in to comment.