From 7f48e8fe6668c5b2fdc62cc70e6bcffb744f411c Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 31 Aug 2021 16:25:12 +0200 Subject: Make user-facing "debug" representation use Debug instead of Display --- src/geom/dir.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/geom/dir.rs') diff --git a/src/geom/dir.rs b/src/geom/dir.rs index 7b224b55..d95c7eb9 100644 --- a/src/geom/dir.rs +++ b/src/geom/dir.rs @@ -1,7 +1,7 @@ use super::*; /// The four directions into which content can be laid out. -#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] pub enum Dir { /// Left to right. LTR, @@ -71,7 +71,7 @@ impl Dir { } } -impl Display for Dir { +impl Debug for Dir { fn fmt(&self, f: &mut Formatter) -> fmt::Result { f.pad(match self { Self::LTR => "ltr", -- cgit v1.2.3