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
|
- 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
|
||||||
|
@ -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(..)`
|
||||||
|
@ -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,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -203,7 +203,8 @@ 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(
|
||||||
|
AstExpr::InterpolatedFunction(Arc::new(InterpolatedFunction {
|
||||||
name: identifier,
|
name: identifier,
|
||||||
arguments: ArgumentInvocation {
|
arguments: ArgumentInvocation {
|
||||||
positional: arguments,
|
positional: arguments,
|
||||||
@ -214,6 +215,7 @@ impl<'a> CssParser<'a> {
|
|||||||
},
|
},
|
||||||
span,
|
span,
|
||||||
}))
|
}))
|
||||||
.span(span))
|
.span(span),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user