From 29d4f3e88799b10ecfff80e743049e0f58dde56e Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 22 Oct 2024 09:28:03 -0700 Subject: [PATCH] Format regression tests with rustfmt --- test_suite/tests/regression/issue2565.rs | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/test_suite/tests/regression/issue2565.rs b/test_suite/tests/regression/issue2565.rs index 65cbb0a31..f13cacf04 100644 --- a/test_suite/tests/regression/issue2565.rs +++ b/test_suite/tests/regression/issue2565.rs @@ -1,4 +1,4 @@ -use serde_derive::{Serialize, Deserialize}; +use serde_derive::{Deserialize, Serialize}; use serde_test::{assert_tokens, Token}; #[derive(Serialize, Deserialize, Debug, PartialEq)] @@ -18,11 +18,15 @@ fn simple_variant() { assert_tokens( &Enum::Simple { a: 42 }, &[ - Token::StructVariant { name: "Enum", variant: "Simple", len: 1 }, + Token::StructVariant { + name: "Enum", + variant: "Simple", + len: 1, + }, Token::Str("a"), Token::I32(42), Token::StructVariantEnd, - ] + ], ); } @@ -31,11 +35,14 @@ fn flatten_variant() { assert_tokens( &Enum::Flatten { flatten: (), a: 42 }, &[ - Token::NewtypeVariant { name: "Enum", variant: "Flatten" }, + Token::NewtypeVariant { + name: "Enum", + variant: "Flatten", + }, Token::Map { len: None }, Token::Str("a"), Token::I32(42), Token::MapEnd, - ] + ], ); }