Forward point formatting through to underlying vector
This commit is contained in:
parent
9036e87dd6
commit
e18636f052
|
@ -458,10 +458,8 @@ where
|
|||
DefaultAllocator: Allocator<T, D>,
|
||||
{
|
||||
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, "}}")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue