From acc8135ef8b9be71cf107c96b90e1a2d73fab041 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Tue, 26 Feb 2019 13:10:44 -0300 Subject: [PATCH] Removed silly warnings --- src/main.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8b6329d..8a2d64b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -32,14 +32,12 @@ fn main() { parser.fold(None, {|state:Option, element| { match element.unwrap() { Event::ElementStart(tag) => { - // println!("Start: {}", tag.name); match tag.name.as_ref() { "title" => Some(State::Title), _ => None } }, - Event::ElementEnd(tag) => { - // println!("End: {}", tag.name); + Event::ElementEnd(_) => { None // ending a tag always remove the state }, Event::Characters(data) => { @@ -52,8 +50,7 @@ fn main() { _ => state } }, - Event::CDATA(data) => { - // println!("CDATA: {}", data); + Event::CDATA(_) => { state }, _ => state