Forward point formatting through to underlying vector

This commit is contained in:
Owen Brooks 2022-06-07 10:27:48 +10:00
parent 9036e87dd6
commit e18636f052
1 changed files with 1 additions and 3 deletions

View File

@ -458,10 +458,8 @@ where
DefaultAllocator: Allocator<T, D>, DefaultAllocator: Allocator<T, D>,
{ {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let precision = f.precision().unwrap_or(3);
write!(f, "Point {{")?; write!(f, "Point {{")?;
write!(f, "{:.*}", precision, self.coords)?; self.coords.fmt(f)?;
write!(f, "}}") write!(f, "}}")
} }
} }