diff --git a/src/lexer.rs b/src/lexer.rs index 8c3bf83..8413c3b 100644 --- a/src/lexer.rs +++ b/src/lexer.rs @@ -272,7 +272,7 @@ impl<'a> Lexer<'a> { '^' => AttributeKind::StartsWith, '$' => AttributeKind::EndsWith, '*' => AttributeKind::Contains, - _ => todo!("Expected ']'") + _ => todo!("Expected ']'"), }; if kind != AttributeKind::Equals { diff --git a/src/mixin.rs b/src/mixin.rs index de518da..ebd19f9 100644 --- a/src/mixin.rs +++ b/src/mixin.rs @@ -95,10 +95,9 @@ impl Mixin { match expr { Expr::Style(s) => stmts.push(Stmt::Style(s)), Expr::Include(s) => stmts.extend(s), - Expr::MixinDecl(..) - | Expr::FunctionDecl(..) - | Expr::Debug(..) - | Expr::Warn(..) => todo!(), + Expr::MixinDecl(..) | Expr::FunctionDecl(..) | Expr::Debug(..) | Expr::Warn(..) => { + todo!() + } Expr::Selector(selector) => { let rules = self.eval(&super_selector.zip(&selector))?; stmts.push(Stmt::RuleSet(RuleSet { @@ -144,7 +143,7 @@ pub(crate) fn eat_include>( assert_eq!(tok.kind, TokenKind::Symbol(Symbol::SemiColon)); } tmp - }, + } _ => return Err((pos, String::from("expected `(` or `;`"))), } } else {