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

10
Cargo.lock generated
View file

@ -934,7 +934,7 @@ dependencies = [
[[package]]
name = "tengri"
version = "0.8.0"
version = "0.9.1"
dependencies = [
"tengri_dsl",
"tengri_input",
@ -944,7 +944,7 @@ dependencies = [
[[package]]
name = "tengri_dsl"
version = "0.8.0"
version = "0.9.1"
dependencies = [
"itertools 0.14.0",
"konst",
@ -955,7 +955,7 @@ dependencies = [
[[package]]
name = "tengri_input"
version = "0.8.0"
version = "0.9.1"
dependencies = [
"tengri_dsl",
"tengri_tui",
@ -963,7 +963,7 @@ dependencies = [
[[package]]
name = "tengri_output"
version = "0.8.0"
version = "0.9.1"
dependencies = [
"proptest",
"proptest-derive",
@ -974,7 +974,7 @@ dependencies = [
[[package]]
name = "tengri_tui"
version = "0.8.0"
version = "0.9.1"
dependencies = [
"atomic_float",
"better-panic",

View file

@ -1,5 +1,5 @@
[workspace.package]
version = "0.9.0"
version = "0.9.1"
[workspace]
resolver = "2"

View file

@ -72,7 +72,7 @@ pub(crate) use std::fmt::Debug;
if let Some(value) = $state.get(&$token.value) {
value
} else {
panic!("no value corresponding to for {:?}", &$token.value);
panic!("no value corresponding to {:?}", &$token.value);
}
}
}
@ -82,7 +82,7 @@ pub(crate) use std::fmt::Debug;
if let Some(content) = $state.get_content(&$token.value) {
content
} else {
panic!("no content corresponding to for {:?}", &$token.value);
panic!("no content corresponding to {:?}", &$token.value);
}
}
}

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))
}
}