diff --git a/Cargo.lock b/Cargo.lock index eb159d3bd4..ce88812162 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2932,18 +2932,18 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "struct-patch" -version = "0.4.1" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c52ef523e89b3172242bbabefd8a92493ae5571224c29ed2f00185c39b395c2" +checksum = "82dd71e677fa313d07db38f4c7f9a38f89dfb90be8f35914956919f6ca7b9174" dependencies = [ "struct-patch-derive", ] [[package]] name = "struct-patch-derive" -version = "0.4.1" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f14a349c27ebe59faba22f933c9c734d428da7231e88a247e9d8c61eea964ddb" +checksum = "4596646090f0d724e6c7f3b65d694f99a0daa1a5893a78ef83887025e041405c" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index 7063d95ddb..a7fc3fd908 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,7 +50,7 @@ scopetime = { path = "./scopetime", version = "0.1" } serde = "1.0" shellexpand = "3.1" simplelog = { version = "0.12", default-features = false } -struct-patch = "0.4" +struct-patch = "0.8" syntect = { version = "5.2", default-features = false, features = [ "parsing", "default-syntaxes", diff --git a/src/keys/key_list.rs b/src/keys/key_list.rs index 2903499587..0f2909a2fe 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..839ec380fb 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,