Use the same order of derives

This commit is contained in:
Mingun 2023-08-07 21:12:23 +05:00
parent 2cbfd37072
commit 9128201c78

View File

@ -672,7 +672,7 @@ fn newtype_variant_containing_unit_struct() {
#[test] #[test]
fn with_skipped_conflict() { fn with_skipped_conflict() {
#[derive(Serialize, Deserialize, PartialEq, Debug)] #[derive(Debug, PartialEq, Serialize, Deserialize)]
#[serde(tag = "t")] #[serde(tag = "t")]
enum Data { enum Data {
A, A,
@ -705,7 +705,7 @@ fn with_skipped_conflict() {
#[test] #[test]
fn containing_flatten() { fn containing_flatten() {
#[derive(Serialize, Deserialize, PartialEq, Debug)] #[derive(Debug, PartialEq, Serialize, Deserialize)]
#[serde(tag = "t")] #[serde(tag = "t")]
enum Data { enum Data {
A { A {
@ -715,7 +715,7 @@ fn containing_flatten() {
}, },
} }
#[derive(Serialize, Deserialize, PartialEq, Debug)] #[derive(Debug, PartialEq, Serialize, Deserialize)]
struct Flat { struct Flat {
b: i32, b: i32,
} }
@ -742,7 +742,7 @@ fn containing_flatten() {
#[test] #[test]
fn newtype_variant_containing_unit() { fn newtype_variant_containing_unit() {
#[derive(Serialize, Deserialize, PartialEq, Debug)] #[derive(Debug, PartialEq, Serialize, Deserialize)]
#[serde(tag = "t")] #[serde(tag = "t")]
enum Data { enum Data {
A(()), A(()),
@ -761,7 +761,7 @@ fn newtype_variant_containing_unit() {
#[test] #[test]
fn unit_variant_with_unknown_fields() { fn unit_variant_with_unknown_fields() {
#[derive(Deserialize, PartialEq, Debug)] #[derive(Debug, PartialEq, Deserialize)]
#[serde(tag = "t")] #[serde(tag = "t")]
enum Data { enum Data {
A, A,