0.10.0: fixed expose! syntax

This commit is contained in:
🪞👃🪞 2025-04-17 02:21:00 +03:00
parent 6048d24880
commit 471959d1f5
3 changed files with 14 additions and 12 deletions

View file

@ -85,8 +85,10 @@ macro_rules! transform_xy_unit {
if let Some(Token { value: Value::Key(k), .. }) = iter.peek() {
if k == $x || k == $y {
let _ = iter.next().unwrap();
let u = get_value!(state => iter.next().expect("no unit specified"));
let c = get_content!(state => iter.next().expect("no content specified"));
let u = iter.next().expect("no unit specified");
let u = get_value!(state => u);
let c = iter.next().expect("no content specified");
let c = get_content!(state => c);
return Some(match k {
$x => Self::x(u, c),
$y => Self::y(u, c),