From dea34887d3807fadc17cb816e3ecbd0b6b09fa02 Mon Sep 17 00:00:00 2001 From: Orion Date: Thu, 18 Jul 2024 15:09:39 +0200 Subject: [PATCH] derive default --- src/attributes.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/attributes.rs b/src/attributes.rs index 68aefe1..5b1298a 100644 --- a/src/attributes.rs +++ b/src/attributes.rs @@ -2,14 +2,14 @@ use html5ever::{LocalName, Namespace, Prefix}; use indexmap::{map::Entry, IndexMap}; /// Convenience wrapper around a indexmap that adds method for attributes in the null namespace. -#[derive(Debug, PartialEq, Clone)] +#[derive(Debug, PartialEq, Clone, Default)] pub struct Attributes { /// A map of attributes whose name can have namespaces. pub map: IndexMap, } /// -#[derive(Debug, PartialEq, Eq, Hash, Clone, PartialOrd, Ord)] +#[derive(Debug, PartialEq, Eq, Hash, Clone, PartialOrd, Ord, Default)] pub struct ExpandedName { /// Namespace URL pub ns: Namespace, @@ -28,7 +28,7 @@ impl ExpandedName { } /// The non-identifying parts of an attribute -#[derive(Debug, PartialEq, Clone)] +#[derive(Debug, PartialEq, Clone, Default)] pub struct Attribute { /// The namespace prefix, if any pub prefix: Option,