Got things compiling again

But this is a bad design for the DebugAsk
This commit is contained in:
greg
2019-06-19 10:41:20 -07:00
parent e3bd108e6c
commit 6d3f5f4b81
2 changed files with 8 additions and 6 deletions

View File

@@ -56,8 +56,10 @@ impl DirectiveAction {
let meta_response = cur_state.request_meta(meta);
let response = match meta_response {
LangMetaResponse::ImmediateDebug(DebugResponse { ask: DebugAsk::ByStage { stage_name: this_stage_name, .. }, value }) if this_stage_name == stage_name =>
value,
LangMetaResponse::ImmediateDebug(DebugResponse { ask, value }) => match ask {
DebugAsk::ByStage { stage_name: ref this_stage_name, ref token } if *this_stage_name == stage_name => value,
_ => return Some(format!("Wrong debug stage"))
},
_ => return Some(format!("Invalid language meta response")),
};
Some(response)