rustfmt
This commit is contained in:
parent
fcb1a71557
commit
47ef4c1cda
10
src/mixin.rs
10
src/mixin.rs
@ -1,8 +1,8 @@
|
|||||||
use std::iter::Peekable;
|
use std::iter::Peekable;
|
||||||
use std::vec::IntoIter;
|
use std::vec::IntoIter;
|
||||||
|
|
||||||
use crate::common::{Pos, Scope, Symbol};
|
|
||||||
use crate::args::{eat_call_args, eat_func_args, CallArgs, FuncArgs};
|
use crate::args::{eat_call_args, eat_func_args, CallArgs, FuncArgs};
|
||||||
|
use crate::common::{Pos, Scope, Symbol};
|
||||||
use crate::selector::Selector;
|
use crate::selector::Selector;
|
||||||
use crate::utils::devour_whitespace;
|
use crate::utils::devour_whitespace;
|
||||||
use crate::{eat_expr, Expr, RuleSet, Stmt, Token, TokenKind};
|
use crate::{eat_expr, Expr, RuleSet, Stmt, Token, TokenKind};
|
||||||
@ -94,9 +94,11 @@ impl Mixin {
|
|||||||
while let Some(expr) = eat_expr(&mut self.body, &self.scope, super_selector)? {
|
while let Some(expr) = eat_expr(&mut self.body, &self.scope, super_selector)? {
|
||||||
match expr {
|
match expr {
|
||||||
Expr::Style(s) => stmts.push(Stmt::Style(s)),
|
Expr::Style(s) => stmts.push(Stmt::Style(s)),
|
||||||
Expr::Include(..) | Expr::MixinDecl(..) | Expr::FunctionDecl(..) | Expr::Debug(..) | Expr::Warn(..) => {
|
Expr::Include(..)
|
||||||
todo!()
|
| Expr::MixinDecl(..)
|
||||||
}
|
| Expr::FunctionDecl(..)
|
||||||
|
| Expr::Debug(..)
|
||||||
|
| Expr::Warn(..) => todo!(),
|
||||||
Expr::Selector(selector) => {
|
Expr::Selector(selector) => {
|
||||||
let rules = self.eval(&super_selector.zip(&selector))?;
|
let rules = self.eval(&super_selector.zip(&selector))?;
|
||||||
stmts.push(Stmt::RuleSet(RuleSet {
|
stmts.push(Stmt::RuleSet(RuleSet {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user