Refactor execution module (#5162)
* cargo update, etc Signed-off-by: Nick Cameron <nrc@ncameron.org> * Refactor execution/mod.rs (code motion) Signed-off-by: Nick Cameron <nrc@ncameron.org> * Refactor caching out of ExecutorContext plus some tidying up Signed-off-by: Nick Cameron <nrc@ncameron.org> * Move caching logic to inside execution Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
@ -17,7 +17,7 @@ mod test_examples_my_func {
|
||||
context_type: crate::execution::ContextType::Mock,
|
||||
};
|
||||
if let Err(e) = ctx
|
||||
.run(program.into(), &mut crate::ExecState::new(&ctx.settings))
|
||||
.run(&program, &mut crate::ExecState::new(&ctx.settings))
|
||||
.await
|
||||
{
|
||||
return Err(miette::Report::new(crate::errors::Report {
|
||||
@ -74,7 +74,7 @@ mod test_examples_my_func {
|
||||
context_type: crate::execution::ContextType::Mock,
|
||||
};
|
||||
if let Err(e) = ctx
|
||||
.run(program.into(), &mut crate::ExecState::new(&ctx.settings))
|
||||
.run(&program, &mut crate::ExecState::new(&ctx.settings))
|
||||
.await
|
||||
{
|
||||
return Err(miette::Report::new(crate::errors::Report {
|
||||
|
Reference in New Issue
Block a user