Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add and remove some doc comments for clippy #73

Merged
merged 1 commit into from
Jul 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading