From 68a5a34f7bc8c130b1ebcabac6ae265ddfcd23a2 Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Mon, 15 May 2023 21:52:05 +0200 Subject: [PATCH] block: rm unused Display impls --- src/block.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/block.rs b/src/block.rs index 2ce775d..6d52824 100644 --- a/src/block.rs +++ b/src/block.rs @@ -1105,22 +1105,6 @@ impl<'s> Kind<'s> { } } -impl<'s> std::fmt::Display for Block<'s> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - match self { - Block::Atom(a) => std::fmt::Debug::fmt(a, f), - Block::Leaf(e) => std::fmt::Debug::fmt(e, f), - Block::Container(c) => std::fmt::Debug::fmt(c, f), - } - } -} - -impl std::fmt::Display for Atom { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "Inline") - } -} - /// Similar to `std::str::split('\n')` but newline is included and spans are used instead of `str`. fn lines(src: &str) -> impl Iterator + '_ { let mut chars = src.chars();