diff --git a/src/flow/binary/balancing.rs b/src/flow/binary/balancing.rs index 23aab1f..953f59a 100644 --- a/src/flow/binary/balancing.rs +++ b/src/flow/binary/balancing.rs @@ -48,14 +48,11 @@ pub enum BalancingError { impl Display for BalancingError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Self::Height(height_error) => write!(f, "invalid AVL non-leaf height: {height_error}"), - Self::Balance(hl, hr) => write!(f, "unbalanced AVL node: {hl} {hr}."), - Self::HeightOverflow => write!(f, "AVL tree height overflow"), + Self::Height(height_error) => write!(f, "height error: {height_error}"), + Self::Balance(hl, hr) => write!(f, "unbalanced node: {hl} {hr}."), + Self::HeightOverflow => write!(f, "tree height overflow"), Self::HeightMismatch { children, parent } => { - write!( - f, - "AVL child-parent height mismatch: {children:?}, {parent}" - ) + write!(f, "child-parent height mismatch: {children:?}, {parent}") } } }