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
with:
profile: minimal
toolchain: stable
toolchain: nightly
override: true
- name: version info

View File

@ -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(..)`

View File

@ -27,8 +27,8 @@ mod builtin_imports {
};
pub(crate) use std::{
sync::Arc,
cmp::Ordering,
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());
}
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),
)
}
}

View File

@ -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};