From 357647b19c8dc2446cadec298adb0f1e221ad3ce Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sun, 26 Jan 2020 15:26:45 -0500 Subject: [PATCH] rustfmt --- src/lexer.rs | 2 +- src/mixin.rs | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) 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 {