fix(aquavm): temporary fix entire value in canon (#358)

This commit is contained in:
Mike Voronov
2022-10-10 22:15:28 +03:00
committed by GitHub
parent 076045124c
commit eafdec5d86
15 changed files with 128 additions and 192 deletions

View File

@ -128,8 +128,7 @@ pub struct ApResult {
#[derive(Debug, Default, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub struct CanonResult {
#[serde(rename = "ids")]
pub stream_elements_pos: Vec<TracePos>,
pub canonicalized_element: JValue,
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]

View File

@ -87,9 +87,9 @@ impl ApResult {
}
impl CanonResult {
pub fn new(stream_elements_pos: Vec<TracePos>) -> Self {
pub fn new(canonicalized_element: JValue) -> Self {
Self {
stream_elements_pos,
canonicalized_element,
}
}
}
@ -129,8 +129,8 @@ impl std::fmt::Display for ExecutedState {
Ap(ap) => {
write!(f, "ap: _ -> {:?}", ap.res_generations)
}
Canon(canon) => {
write!(f, "canon {:?}", canon.stream_elements_pos)
Canon(_) => {
write!(f, "canon [<object>]")
}
}
}