From 9128201c78ae7674ae6c0c5876b7842c0d0c3664 Mon Sep 17 00:00:00 2001 From: Mingun Date: Mon, 7 Aug 2023 21:12:23 +0500 Subject: [PATCH] Use the same order of derives --- test_suite/tests/test_enum_internally_tagged.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test_suite/tests/test_enum_internally_tagged.rs b/test_suite/tests/test_enum_internally_tagged.rs index 0a022028..751a80c9 100644 --- a/test_suite/tests/test_enum_internally_tagged.rs +++ b/test_suite/tests/test_enum_internally_tagged.rs @@ -672,7 +672,7 @@ fn newtype_variant_containing_unit_struct() { #[test] fn with_skipped_conflict() { - #[derive(Serialize, Deserialize, PartialEq, Debug)] + #[derive(Debug, PartialEq, Serialize, Deserialize)] #[serde(tag = "t")] enum Data { A, @@ -705,7 +705,7 @@ fn with_skipped_conflict() { #[test] fn containing_flatten() { - #[derive(Serialize, Deserialize, PartialEq, Debug)] + #[derive(Debug, PartialEq, Serialize, Deserialize)] #[serde(tag = "t")] enum Data { A { @@ -715,7 +715,7 @@ fn containing_flatten() { }, } - #[derive(Serialize, Deserialize, PartialEq, Debug)] + #[derive(Debug, PartialEq, Serialize, Deserialize)] struct Flat { b: i32, } @@ -742,7 +742,7 @@ fn containing_flatten() { #[test] fn newtype_variant_containing_unit() { - #[derive(Serialize, Deserialize, PartialEq, Debug)] + #[derive(Debug, PartialEq, Serialize, Deserialize)] #[serde(tag = "t")] enum Data { A(()), @@ -761,7 +761,7 @@ fn newtype_variant_containing_unit() { #[test] fn unit_variant_with_unknown_fields() { - #[derive(Deserialize, PartialEq, Debug)] + #[derive(Debug, PartialEq, Deserialize)] #[serde(tag = "t")] enum Data { A,