From 3ea0a4d9fc883aab8700a7b8a6c46cc780109f42 Mon Sep 17 00:00:00 2001 From: Anton Engelhardt Date: Tue, 30 Apr 2024 17:35:16 +0200 Subject: [PATCH] simply serde annotations Signed-off-by: Anton Engelhardt --- src/traits.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/traits.rs b/src/traits.rs index 7c2d3c6..3799b2e 100644 --- a/src/traits.rs +++ b/src/traits.rs @@ -355,8 +355,7 @@ pub trait RootContext: Context { /// /// struct MyRootContext; /// - /// #[derive(serde::Deserialize)] - /// #[derive(Debug)] + /// #[derive(serde::Deserialize, Debug)] /// struct MyVmConfiguration { /// /// Some key /// pub key: String, @@ -395,8 +394,7 @@ pub trait RootContext: Context { /// /// struct MyRootContext; /// - /// #[derive(serde::Deserialize)] - /// #[derive(Debug)] + /// #[derive(serde::Deserialize, Debug)] /// struct MyVmConfiguration { /// /// Some key /// pub key: String, @@ -440,8 +438,7 @@ pub trait RootContext: Context { /// /// struct MyRootContext; /// - /// #[derive(serde::Deserialize)] - /// #[derive(Debug)] + /// #[derive(serde::Deserialize, Debug)] /// struct MyPluginConfiguration { /// /// Some key /// pub key: String, @@ -480,8 +477,7 @@ pub trait RootContext: Context { /// /// struct MyRootContext; /// - /// #[derive(serde::Deserialize)] - /// #[derive(Debug)] + /// #[derive(serde::Deserialize, Debug)] /// struct MyPluginConfiguration { /// /// Some key /// pub key: String,