subscription: use lowercase for Display-ing status

This commit is contained in:
Fabian Grünbichler 2022-09-07 13:04:44 +02:00
parent 31f1bbbf40
commit d55816e9dd

View File

@ -49,11 +49,11 @@ impl Default for SubscriptionStatus {
impl std::fmt::Display for SubscriptionStatus {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
SubscriptionStatus::New => write!(f, "New"),
SubscriptionStatus::NotFound => write!(f, "NotFound"),
SubscriptionStatus::Active => write!(f, "Active"),
SubscriptionStatus::Invalid => write!(f, "Invalid"),
SubscriptionStatus::Expired => write!(f, "Expired"),
SubscriptionStatus::New => write!(f, "new"),
SubscriptionStatus::NotFound => write!(f, "notfound"),
SubscriptionStatus::Active => write!(f, "active"),
SubscriptionStatus::Invalid => write!(f, "invalid"),
SubscriptionStatus::Expired => write!(f, "expired"),
}
}
}