Skip to content

Commit c11460b

Browse files
simplify serde annotations
Signed-off-by: Anton Engelhardt <[email protected]>
1 parent f190139 commit c11460b

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/traits.rs

+4-8
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,7 @@ pub trait RootContext: Context {
355355
///
356356
/// struct MyRootContext;
357357
///
358-
/// #[derive(serde::Deserialize)]
359-
/// #[derive(Debug)]
358+
/// #[derive(serde::Deserialize, Debug)]
360359
/// struct MyVmConfiguration {
361360
/// /// Some key
362361
/// pub key: String,
@@ -395,8 +394,7 @@ pub trait RootContext: Context {
395394
///
396395
/// struct MyRootContext;
397396
///
398-
/// #[derive(serde::Deserialize)]
399-
/// #[derive(Debug)]
397+
/// #[derive(serde::Deserialize, Debug)]
400398
/// struct MyVmConfiguration {
401399
/// /// Some key
402400
/// pub key: String,
@@ -440,8 +438,7 @@ pub trait RootContext: Context {
440438
///
441439
/// struct MyRootContext;
442440
///
443-
/// #[derive(serde::Deserialize)]
444-
/// #[derive(Debug)]
441+
/// #[derive(serde::Deserialize, Debug)]
445442
/// struct MyPluginConfiguration {
446443
/// /// Some key
447444
/// pub key: String,
@@ -480,8 +477,7 @@ pub trait RootContext: Context {
480477
///
481478
/// struct MyRootContext;
482479
///
483-
/// #[derive(serde::Deserialize)]
484-
/// #[derive(Debug)]
480+
/// #[derive(serde::Deserialize, Debug)]
485481
/// struct MyPluginConfiguration {
486482
/// /// Some key
487483
/// pub key: String,

0 commit comments

Comments
 (0)