From 8684b40bb049c4a577e7eae6cd07896f194d5235 Mon Sep 17 00:00:00 2001 From: Orion Gonzalez Date: Thu, 18 Jul 2024 15:20:33 +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,