0.9.1: fix get_value/get_content invocations

This commit is contained in:
🪞👃🪞 2025-04-15 18:13:30 +03:00
parent f11c27b8c9
commit 6048d24880
4 changed files with 12 additions and 12 deletions

View file

@ -39,7 +39,7 @@ macro_rules! transform_xy {
if k == $x || k == $y || k == $xy {
let _ = iter.next().unwrap();
let token = iter.next().expect("no content specified");
let content = get_content!(state, token);;
let content = get_content!(state => token);;
return Some(match k {
$x => Self::x(content),
$y => Self::y(content),
@ -94,9 +94,9 @@ macro_rules! transform_xy_unit {
})
} else if k == $xy {
let _ = iter.next().unwrap();
let u = get_value!(state, iter.next().expect("no unit specified"));
let v = get_value!(state, iter.next().expect("no unit specified"));
let c = get_content!(state, iter.next().expect("no content specified"));
let u = get_value!(state => iter.next().expect("no unit specified"));
let v = get_value!(state => iter.next().expect("no unit specified"));
let c = get_content!(state => iter.next().expect("no content specified"));
return Some(Self::xy(u, v, c))
}
}