From e18636f052ccd963b8ac0441ec2a276ad47cafcb Mon Sep 17 00:00:00 2001 From: Owen Brooks Date: Tue, 7 Jun 2022 10:27:48 +1000 Subject: [PATCH] Forward point formatting through to underlying vector --- src/geometry/point.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/geometry/point.rs b/src/geometry/point.rs index 1ccad408..35f8cdbc 100644 --- a/src/geometry/point.rs +++ b/src/geometry/point.rs @@ -458,10 +458,8 @@ where DefaultAllocator: Allocator, { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - let precision = f.precision().unwrap_or(3); - write!(f, "Point {{")?; - write!(f, "{:.*}", precision, self.coords)?; + self.coords.fmt(f)?; write!(f, "}}") } }