From 2789e9887666a05695778bd9d822616985b40dbc Mon Sep 17 00:00:00 2001 From: Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> Date: Thu, 21 Mar 2024 00:05:29 +0100 Subject: clippy: Fix redundant field names warnings (#31793) --- components/script/dom/documenttype.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/dom/documenttype.rs') diff --git a/components/script/dom/documenttype.rs b/components/script/dom/documenttype.rs index 3f2a0200db5..7ffd6a948e7 100644 --- a/components/script/dom/documenttype.rs +++ b/components/script/dom/documenttype.rs @@ -32,7 +32,7 @@ impl DocumentType { ) -> DocumentType { DocumentType { node: Node::new_inherited(document), - name: name, + name, public_id: public_id.unwrap_or_default(), system_id: system_id.unwrap_or_default(), } -- cgit v1.2.3