From bffe512c33b3602d925b1e8c6934901aa3d499ec Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Sat, 10 Dec 2016 11:27:42 -0800 Subject: Add display impl for Points --- src/window.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/window.rs b/src/window.rs index c1790bb6..4d8a0c02 100644 --- a/src/window.rs +++ b/src/window.rs @@ -142,6 +142,12 @@ impl Display for Pixels { } } +impl Display for Points { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "{}pts", self.0) + } +} + impl ::std::error::Error for Error { fn cause(&self) -> Option<&::std::error::Error> { match *self { -- cgit