From 3ddeb0cd2d9469bab8dcc49d63424cffb605141e Mon Sep 17 00:00:00 2001
From: Martin Fischer <martin@push-f.com>
Date: Wed, 27 Sep 2023 08:55:31 +0200
Subject: chore: move StartTag::name field up

The Debug formatting is more readable when the name comes first.
---
 src/token.rs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/token.rs b/src/token.rs
index 2afef8c..d198fde 100644
--- a/src/token.rs
+++ b/src/token.rs
@@ -27,14 +27,14 @@ pub enum Token {
 /// An HTML start tag, such as `<p>` or `<a>`.
 #[derive(Clone, Debug, Eq, PartialEq)]
 pub struct StartTag {
-    /// Whether this tag is self-closing. If it is self-closing, no following [`EndTag`] should be
-    /// expected.
-    pub self_closing: bool,
-
     /// The tag name.
     /// Uppercase ASCII characters (A-Z) have been converted to lowercase.
     pub name: String,
 
+    /// Whether this tag is self-closing. If it is self-closing, no following [`EndTag`] should be
+    /// expected.
+    pub self_closing: bool,
+
     /// A mapping for any HTML attributes this start tag may have.
     ///
     /// Duplicate attributes are ignored after the first one as per WHATWG spec.
-- 
cgit v1.2.3