diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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<T: Display> Display for Pixels<T> { } } +impl<T: Display> Display for Points<T> { + 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 { |