diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-08-12 13:39:33 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-08-12 13:56:23 +0200 |
| commit | eaa3cbaa9c2b1564a4b0db013672245a1893314a (patch) | |
| tree | 616a3d0f3686793caffcef72f230f8ba79b8f3ca /src/pretty.rs | |
| parent | 8207c31aec6336b773fbf4661fdb87625c8b584e (diff) | |
Array and dictionary indexing
Diffstat (limited to 'src/pretty.rs')
| -rw-r--r-- | src/pretty.rs | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/pretty.rs b/src/pretty.rs index ceee61f8..bd388b56 100644 --- a/src/pretty.rs +++ b/src/pretty.rs @@ -554,18 +554,6 @@ impl Pretty for FuncArg { } } -impl Pretty for i64 { - fn pretty(&self, p: &mut Printer) { - write!(p, "{}", self).unwrap(); - } -} - -impl Pretty for f64 { - fn pretty(&self, p: &mut Printer) { - write!(p, "{}", self).unwrap(); - } -} - impl Pretty for str { fn pretty(&self, p: &mut Printer) { p.push('"'); @@ -594,6 +582,8 @@ macro_rules! pretty_display { } pretty_display! { + i64, + f64, bool, Length, Angle, |
