fix CI, rustfmt

This commit is contained in:
connorskees 2023-01-07 17:32:51 +00:00
parent d7962e02be
commit afba0dd993
5 changed files with 18 additions and 15 deletions

View File

@ -15,7 +15,7 @@ jobs:
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
with: with:
profile: minimal profile: minimal
toolchain: stable toolchain: nightly
override: true override: true
- name: version info - name: version info

View File

@ -8,6 +8,7 @@
# 0.12.1 (unreleased) # 0.12.1 (unreleased)
- add `grass::include!` macro to make it easier to include CSS at compile time - add `grass::include!` macro to make it easier to include CSS at compile time
- various optimizations improving the bootstrap benchmark by ~30% and the bulma benchmark by ~15%
- improve error message for complex units in calculations - improve error message for complex units in calculations
- more accurate formatting of named arguments in arglists when passed to `inspect(..)` - more accurate formatting of named arguments in arglists when passed to `inspect(..)`
- more accurate formatting of nested lists with different separators when passed to `inspect(..)` - more accurate formatting of nested lists with different separators when passed to `inspect(..)`

View File

@ -27,8 +27,8 @@ mod builtin_imports {
}; };
pub(crate) use std::{ pub(crate) use std::{
sync::Arc,
cmp::Ordering, cmp::Ordering,
collections::{BTreeMap, BTreeSet}, collections::{BTreeMap, BTreeSet},
sync::Arc,
}; };
} }

View File

@ -203,17 +203,19 @@ impl<'a> CssParser<'a> {
return Err(("This function isn't allowed in plain CSS.", span).into()); return Err(("This function isn't allowed in plain CSS.", span).into());
} }
Ok(AstExpr::InterpolatedFunction(Arc::new(InterpolatedFunction { Ok(
name: identifier, AstExpr::InterpolatedFunction(Arc::new(InterpolatedFunction {
arguments: ArgumentInvocation { name: identifier,
positional: arguments, arguments: ArgumentInvocation {
named: BTreeMap::new(), positional: arguments,
rest: None, named: BTreeMap::new(),
keyword_rest: None, rest: None,
span: self.toks.span_from(before_args), keyword_rest: None,
}, span: self.toks.span_from(before_args),
span, },
})) span,
.span(span)) }))
.span(span),
)
} }
} }

View File

@ -2,7 +2,7 @@ use std::path::Path;
use codemap::{CodeMap, Span}; use codemap::{CodeMap, Span};
use crate::{ast::*, error::SassResult, lexer::Lexer, Token, ContextFlags, Options}; use crate::{ast::*, error::SassResult, lexer::Lexer, ContextFlags, Options, Token};
use super::{BaseParser, StylesheetParser}; use super::{BaseParser, StylesheetParser};