Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHe4rt committed Aug 20, 2024
1 parent 8162683 commit 2a59799
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions src/models/v1/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ pub struct SettingOptions {
#[charybdis_udt_model(type_name = coloroption)]
#[derive(Debug, Default, Clone, Deserialize, Serialize)]
pub struct ColorOption {
pub name: Text,
pub slug: Text,
pub translation_key: Text,
pub hex: Option<Text>,
pub name: Text,
pub slug: Text,
pub translation_key: Text,
pub hex: Option<Text>,
}

#[charybdis_udt_model(type_name = effectoption)]
#[derive(Debug, Default, Clone, Deserialize, Serialize)]
pub struct EffectOption {
pub name: Text,
pub slug: Text,
pub translation_key: Text,
pub class_name: Text,
pub hex: Option<Text>,
pub name: Text,
pub slug: Text,
pub translation_key: Text,
pub class_name: Text,
pub hex: Option<Text>,
}

#[charybdis_model(
Expand Down
4 changes: 2 additions & 2 deletions src/models/v1/settings_by_username.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub struct SettingsByUsername {
pub timezone: Option<Text>,
pub occupation: Frozen<SettingOptions>,
pub pronouns: Frozen<SettingOptions>,
pub color: Frozen<ColorOption>,
pub effect: Frozen<EffectOption>,
pub color: Frozen<ColorOption>,
pub effect: Frozen<EffectOption>,
pub updated_at: Timestamp,
}

0 comments on commit 2a59799

Please sign in to comment.