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

View file

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

View file

@ -72,7 +72,7 @@ pub(crate) use std::fmt::Debug;
if let Some(value) = $state.get(&$token.value) { if let Some(value) = $state.get(&$token.value) {
value value
} else { } 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) { if let Some(content) = $state.get_content(&$token.value) {
content content
} else { } 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 { if k == $x || k == $y || k == $xy {
let _ = iter.next().unwrap(); let _ = iter.next().unwrap();
let token = iter.next().expect("no content specified"); let token = iter.next().expect("no content specified");
let content = get_content!(state, token);; let content = get_content!(state => token);;
return Some(match k { return Some(match k {
$x => Self::x(content), $x => Self::x(content),
$y => Self::y(content), $y => Self::y(content),
@ -94,9 +94,9 @@ macro_rules! transform_xy_unit {
}) })
} else if k == $xy { } else if k == $xy {
let _ = iter.next().unwrap(); let _ = iter.next().unwrap();
let u = get_value!(state, iter.next().expect("no unit specified")); let u = get_value!(state => iter.next().expect("no unit specified"));
let v = 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 c = get_content!(state => iter.next().expect("no content specified"));
return Some(Self::xy(u, v, c)) return Some(Self::xy(u, v, c))
} }
} }