From ce32360e35e03d8c0385c836f89ef143147f344e Mon Sep 17 00:00:00 2001 From: timofey Date: Sun, 18 Jun 2023 12:34:16 +0000 Subject: [PATCH] clarify `TreeParseError` --- src/rstd/collections/tree.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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}")