diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-08-31 16:25:12 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-08-31 16:25:12 +0200 |
| commit | 7f48e8fe6668c5b2fdc62cc70e6bcffb744f411c (patch) | |
| tree | 6ec437098d9f6df511cfbc0805ac51af288c4eec /src/eval/template.rs | |
| parent | 3481d8cc81a2b3a14118869c7f0ffe204ff3efc8 (diff) | |
Make user-facing "debug" representation use Debug instead of Display
Diffstat (limited to 'src/eval/template.rs')
| -rw-r--r-- | src/eval/template.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/eval/template.rs b/src/eval/template.rs index f4feda40..42b35fc3 100644 --- a/src/eval/template.rs +++ b/src/eval/template.rs @@ -1,5 +1,5 @@ use std::convert::TryFrom; -use std::fmt::{self, Debug, Display, Formatter}; +use std::fmt::{self, Debug, Formatter}; use std::mem; use std::ops::{Add, AddAssign}; use std::rc::Rc; @@ -189,12 +189,6 @@ impl Template { impl Debug for Template { fn fmt(&self, f: &mut Formatter) -> fmt::Result { - f.pad("Template { .. }") - } -} - -impl Display for Template { - fn fmt(&self, f: &mut Formatter) -> fmt::Result { f.pad("<template>") } } |
