From e2d940b949f329bf771c9d08d98604345891b325 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 22 Apr 2020 10:53:26 +0200 Subject: [PATCH] src/config/network/parser.rs: remove debug println --- src/config/network/parser.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/config/network/parser.rs b/src/config/network/parser.rs index dee13aa8..4f24ed2a 100644 --- a/src/config/network/parser.rs +++ b/src/config/network/parser.rs @@ -73,8 +73,7 @@ impl NetworkParser { loop { match self.next()? { (Token::Text, iface) => { - println!("AUTO {}", iface); - auto_flag.insert(iface.to_string()); + auto_flag.insert(iface.to_string()); } (Token::Newline, _) => break, unexpected => { @@ -232,20 +231,16 @@ impl NetworkParser { let mut auto_flag: HashSet = HashSet::new(); loop { - let peek = self.peek()?; - println!("TOKEN: {:?}", peek); - match peek { + match self.peek()? { Token::EOF => { - // fixme: trailing comments break; } Token::Newline => { + // skip empty lines self.eat(Token::Newline)?; - // fixme end of entry } Token::Comment => { let (_, text) = self.next()?; - println!("COMMENT: {}", text); config.order.push(NetworkOrderEntry::Comment(text)); self.eat(Token::Newline)?; }