Skip to content

Commit

Permalink
fix derive attribute for Patch struct
Browse files Browse the repository at this point in the history
  • Loading branch information
yanganto committed Oct 14, 2024
1 parent b4a8f06 commit 1b4372b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/keys/key_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl From<&GituiKeyEvent> for KeyEvent {
}

#[derive(Debug, Clone, Patch)]
#[patch_derive(Deserialize, Debug)]
#[patch(attribute(derive(Deserialize, Debug)))]
pub struct KeysList {
pub tab_status: GituiKeyEvent,
pub tab_log: GituiKeyEvent,
Expand Down
2 changes: 1 addition & 1 deletion src/ui/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use struct_patch::Patch;
pub type SharedTheme = Rc<Theme>;

#[derive(Serialize, Deserialize, Debug, Clone, Patch)]
#[patch_derive(Serialize, Deserialize)]
#[patch(attribute(derive(Serialize, Deserialize)))]
pub struct Theme {
selected_tab: Color,
command_fg: Color,
Expand Down

0 comments on commit 1b4372b

Please sign in to comment.