From 84784e2adbeb7dcc323627796114d192f54c27bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Wed, 18 Oct 2023 19:06:24 +0200 Subject: [PATCH] Add comment in filter_whitespace_nodes method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- src/element.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/element.rs b/src/element.rs index 4124479..7675653 100644 --- a/src/element.rs +++ b/src/element.rs @@ -92,6 +92,7 @@ impl PartialEq for ScanNode { fn filter_whitespace_nodes(nodes: Vec) -> Vec { // Tags with mixed significant text and children tags aren't valid in XMPP, so we know we // can remove these before comparing. + // XXX: ^^^^^ This isn't true. let filter_nodes = |(prev_type, mut acc): (Option, Vec), node| { let type_ = match node { Node::Text(_) => NodeType::Text,