Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrgn committed Nov 10, 2024
1 parent f636e27 commit 5c925dd
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,23 +197,18 @@ pub struct Link {
pub url: String,
}

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
#[derive(Serialize, Deserialize, Default, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "snake_case")]
pub enum BillingInterval {
Yearly,
#[default]
Monthly,
Weekly,
Daily,
Hourly,
Other,
}

impl Default for BillingInterval {
fn default() -> Self {
BillingInterval::Monthly
}
}

#[derive(Serialize, Deserialize, Default, Debug, Clone, PartialEq)]
pub struct MembershipPlan {
pub name: String,
Expand Down Expand Up @@ -310,19 +305,14 @@ impl Status {
}
}

#[derive(Debug, Copy, Clone, Eq, PartialEq)]
#[derive(Default, Debug, Copy, Clone, Eq, PartialEq)]
enum StatusBuilderVersion {
#[default]
V0_13,
V14,
Mixed,
}

impl Default for StatusBuilderVersion {
fn default() -> StatusBuilderVersion {
StatusBuilderVersion::V0_13
}
}

/// Builder for the `Status` object.
#[derive(Default, Debug, Clone)]
pub struct StatusBuilder {
Expand Down

0 comments on commit 5c925dd

Please sign in to comment.