summaryrefslogtreecommitdiffstats
path: root/src/log
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-12-04 10:07:13 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-12-04 10:07:17 +0100
commit89e48c21245e1b09678363fcf157094c1234b277 (patch)
tree92bcf2a40a57c78e0291649386bce0d933b4dc23 /src/log
parentff8eb615b26bc6f01034f1e75108416759d8bd2b (diff)
Maintenance: Remove Display impl
Because `std::string::ToString` is automatically implemented for all `std::fmt::Display` implementing types, we do not need this bit of code. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/log')
-rw-r--r--src/log/item.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/log/item.rs b/src/log/item.rs
index 6a8a29a..58fb466 100644
--- a/src/log/item.rs
+++ b/src/log/item.rs
@@ -30,12 +30,6 @@ impl LogItem {
pub struct Display(String);
-impl Display {
- pub fn to_string(self) -> String {
- self.0
- }
-}
-
impl std::fmt::Display for Display {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error> {
write!(f, "{}", self.0)