fix cli slope name downcasting panic
This commit is contained in:
parent
8ce0676e7d
commit
47af63c73c
1 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ pub(super) struct PlayOpts {
|
||||||
/// Add a slope expression named NAME which mutates the VARIABLE with the result of EXPR each frame
|
/// Add a slope expression named NAME which mutates the VARIABLE with the result of EXPR each frame
|
||||||
#[arg(short, long = "slope", value_name = "NAME:VARIABLE=EXPR", value_parser = parse_key_tuple::<LetterString, Letter, Expression>)]
|
#[arg(short, long = "slope", value_name = "NAME:VARIABLE=EXPR", value_parser = parse_key_tuple::<LetterString, Letter, Expression>)]
|
||||||
#[getset(skip)]
|
#[getset(skip)]
|
||||||
slopes: Vec<(LetterString, (char, Expression))>,
|
slopes: Vec<(LetterString, (Letter, Expression))>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl PlayOpts {
|
impl PlayOpts {
|
||||||
|
@ -87,7 +87,7 @@ impl PlayOpts {
|
||||||
pub(super) fn slopes(&self) -> impl Iterator<Item = (&String, (&char, &Expression))> {
|
pub(super) fn slopes(&self) -> impl Iterator<Item = (&String, (&char, &Expression))> {
|
||||||
self.slopes
|
self.slopes
|
||||||
.iter()
|
.iter()
|
||||||
.map(|(name, (v, e))| (name.as_ref(), (v, e)))
|
.map(|(name, (v, e))| (name.as_ref(), (v.as_ref(), e)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue