diff options
author | Martin Fischer <martin@push-f.com> | 2023-09-27 08:55:31 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-09-28 10:36:08 +0200 |
commit | 3ddeb0cd2d9469bab8dcc49d63424cffb605141e (patch) | |
tree | 791f0daa3ea995d5e247b195eb9c21eb90d97e61 | |
parent | 5ebbe93bf3c62df8159204b2e79d66607f136c30 (diff) |
chore: move StartTag::name field up
The Debug formatting is more readable when the name comes first.
-rw-r--r-- | src/token.rs | 8 |
1 files 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. |