From aacfcc58b9c7a44bfa9932740bf5bd3781718cb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Wed, 12 Jun 2019 18:22:51 +0200 Subject: [PATCH] Change unnecessary mut variable to default immutable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- src/element.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/element.rs b/src/element.rs index a94c1ce..47c8de9 100644 --- a/src/element.rs +++ b/src/element.rs @@ -347,14 +347,14 @@ impl Element { Event::Text(s) => { let text = s.unescape_and_decode(reader)?; if text != "" { - let mut current_elem = stack.last_mut().unwrap(); + let current_elem = stack.last_mut().unwrap(); current_elem.append_text_node(text); } }, Event::CData(s) => { let text = reader.decode(&s).into_owned(); if text != "" { - let mut current_elem = stack.last_mut().unwrap(); + let current_elem = stack.last_mut().unwrap(); current_elem.append_text_node(text); } },