diff --git a/src/keys/key_list.rs b/src/keys/key_list.rs index 2903499587..6f9c8cb5ad 100644 --- a/src/keys/key_list.rs +++ b/src/keys/key_list.rs @@ -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, diff --git a/src/ui/style.rs b/src/ui/style.rs index 2d311af728..7e41d5617f 100644 --- a/src/ui/style.rs +++ b/src/ui/style.rs @@ -9,7 +9,7 @@ use struct_patch::Patch; pub type SharedTheme = Rc; #[derive(Serialize, Deserialize, Debug, Clone, Patch)] -#[patch_derive(Serialize, Deserialize)] +#[patch(attribute(derive(Serialize, Deserialize))] pub struct Theme { selected_tab: Color, command_fg: Color,