From dbe73fc2ac6f7693f86cab7bb9138978d12f0164 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Mon, 17 Feb 2020 09:23:24 -0500 Subject: [PATCH] rustfmt --- src/function.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/function.rs b/src/function.rs index f0907e3..e34cd65 100644 --- a/src/function.rs +++ b/src/function.rs @@ -1,6 +1,6 @@ use std::iter::Peekable; -use crate::args::{CallArgs, eat_func_args, FuncArgs}; +use crate::args::{eat_func_args, CallArgs, FuncArgs}; use crate::atrule::AtRule; use crate::common::{Scope, Symbol}; use crate::error::SassResult; @@ -30,7 +30,7 @@ impl Function { devour_whitespace(toks); let name = match kind { TokenKind::Ident(s) => s, - _ => return Err("Expected identifier.".into()) + _ => return Err("Expected identifier.".into()), }; devour_whitespace(toks); let args = match toks.next() { @@ -69,8 +69,8 @@ impl Function { Some(v) => v, None => match &arg.default { Some(v) => v.clone(), - None => return Err(format!("Missing argument ${}.", &arg.name).into()) - } + None => return Err(format!("Missing argument ${}.", &arg.name).into()), + }, }, }; self.scope.insert_var(&arg.name, val);