Browse code

Removed silly warnings

Julio Biason authored on 26/02/2019 08:10:44
Showing 1 changed files

... ...
@@ -32,14 +32,12 @@ fn main() {
32 32
     parser.fold(None, {|state:Option<State>, element| {
33 33
         match element.unwrap() {
34 34
             Event::ElementStart(tag) => {
35
-                // println!("Start: {}", tag.name);
36 35
                 match tag.name.as_ref() {
37 36
                     "title" => Some(State::Title),
38 37
                     _ => None
39 38
                 }
40 39
             },
41
-            Event::ElementEnd(tag) => {
42
-                // println!("End: {}", tag.name);
40
+            Event::ElementEnd(_) => {
43 41
                 None    // ending a tag always remove the state
44 42
             },
45 43
             Event::Characters(data) => {
... ...
@@ -52,8 +50,7 @@ fn main() {
52 50
                     _ => state
53 51
                 }
54 52
             },
55
-            Event::CDATA(data) => {
56
-                // println!("CDATA: {}", data);
53
+            Event::CDATA(_) => {
57 54
                 state
58 55
             },
59 56
             _ => state