diff --git a/src/rstd/collections/tree.rs b/src/rstd/collections/tree.rs index 9712c8c..3a56acd 100644 --- a/src/rstd/collections/tree.rs +++ b/src/rstd/collections/tree.rs @@ -4,14 +4,14 @@ use crate::rstd::{atomic::au64::*, point::*}; #[derive(Debug)] pub enum TreeParseError { - Int(IntParseError), + Height(IntParseError), Point(PointParseError), Key(E), } impl From for TreeParseError { fn from(value: IntParseError) -> Self { - Self::Int(value) + Self::Height(value) } } @@ -24,8 +24,8 @@ impl From for TreeParseError { impl Display for TreeParseError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Self::Int(int_error) => { - write!(f, "failed to parse tree height: {int_error}") + Self::Height(height_error) => { + write!(f, "failed to parse tree height: {height_error}") } Self::Point(point_error) => { write!(f, "failed to parse node reference: {point_error}")