From 6e40f07f280f36d5b37bf373e817325020f82021 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Wed, 24 Aug 2022 13:02:44 -0400 Subject: [PATCH] Fix docstring missplacement --- src/node.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/node.rs b/src/node.rs index 13e2113..837be1b 100644 --- a/src/node.rs +++ b/src/node.rs @@ -17,6 +17,10 @@ use serde::{Deserialize, Serialize}; use crate::hash::HashWriter; +// NOTE(jwall): Since we enforce certain properties by construction in our DAG +// It's important that serialization isn't able to bypass that. This struct +// allows us to only serialize and deserialize the non-computable fields of a +// node. #[derive(Serialize, Deserialize)] struct NodeSerde { item: Vec,