From 0dd4ae0a7ac0c247078df492469ff20b8a90c886 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 21 Aug 2021 16:38:51 +0200 Subject: Prune derives --- src/eval/function.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/eval/function.rs') diff --git a/src/eval/function.rs b/src/eval/function.rs index 7967090b..57364d11 100644 --- a/src/eval/function.rs +++ b/src/eval/function.rs @@ -38,6 +38,12 @@ impl Function { } } +impl Debug for Function { + fn fmt(&self, f: &mut Formatter) -> fmt::Result { + f.debug_struct("Function").field("name", &self.0.name).finish() + } +} + impl Display for Function { fn fmt(&self, f: &mut Formatter) -> fmt::Result { f.write_str(" fmt::Result { - f.debug_struct("Function").field("name", &self.0.name).finish() - } -} - impl PartialEq for Function { fn eq(&self, other: &Self) -> bool { // We cast to thin pointers for comparison. -- cgit v1.2.3