mirror of
https://github.com/fluencelabs/aquavm
synced 2025-06-12 22:41:21 +00:00
fix(aquavm): temporary fix entire value in canon (#358)
This commit is contained in:
@ -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)]
|
||||
|
@ -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>]")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user