fix CI, rustfmt
This commit is contained in:
parent
d7962e02be
commit
afba0dd993
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
toolchain: nightly
|
||||
override: true
|
||||
|
||||
- name: version info
|
||||
|
@ -8,6 +8,7 @@
|
||||
# 0.12.1 (unreleased)
|
||||
|
||||
- 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
|
||||
- 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(..)`
|
||||
|
@ -27,8 +27,8 @@ mod builtin_imports {
|
||||
};
|
||||
|
||||
pub(crate) use std::{
|
||||
sync::Arc,
|
||||
cmp::Ordering,
|
||||
collections::{BTreeMap, BTreeSet},
|
||||
sync::Arc,
|
||||
};
|
||||
}
|
||||
|
@ -203,17 +203,19 @@ impl<'a> CssParser<'a> {
|
||||
return Err(("This function isn't allowed in plain CSS.", span).into());
|
||||
}
|
||||
|
||||
Ok(AstExpr::InterpolatedFunction(Arc::new(InterpolatedFunction {
|
||||
name: identifier,
|
||||
arguments: ArgumentInvocation {
|
||||
positional: arguments,
|
||||
named: BTreeMap::new(),
|
||||
rest: None,
|
||||
keyword_rest: None,
|
||||
span: self.toks.span_from(before_args),
|
||||
},
|
||||
span,
|
||||
}))
|
||||
.span(span))
|
||||
Ok(
|
||||
AstExpr::InterpolatedFunction(Arc::new(InterpolatedFunction {
|
||||
name: identifier,
|
||||
arguments: ArgumentInvocation {
|
||||
positional: arguments,
|
||||
named: BTreeMap::new(),
|
||||
rest: None,
|
||||
keyword_rest: None,
|
||||
span: self.toks.span_from(before_args),
|
||||
},
|
||||
span,
|
||||
}))
|
||||
.span(span),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ use std::path::Path;
|
||||
|
||||
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};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user