Change Option<usize> to usize for variable resolver index.
This commit is contained in:
@@ -1721,12 +1721,7 @@ impl Engine {
|
||||
#[inline(always)]
|
||||
pub fn on_var(
|
||||
&mut self,
|
||||
callback: impl Fn(
|
||||
&str,
|
||||
Option<usize>,
|
||||
&Scope,
|
||||
&EvalContext,
|
||||
) -> Result<Option<Dynamic>, Box<EvalAltResult>>
|
||||
callback: impl Fn(&str, usize, &Scope, &EvalContext) -> Result<Option<Dynamic>, Box<EvalAltResult>>
|
||||
+ SendSync
|
||||
+ 'static,
|
||||
) -> &mut Self {
|
||||
|
Reference in New Issue
Block a user