mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 11:46:42 +01:00
0.10.0: fixed expose! syntax
This commit is contained in:
parent
6048d24880
commit
471959d1f5
3 changed files with 14 additions and 12 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue