diff options
author | Joe Wilm <joe@jwilm.com> | 2016-12-10 11:27:42 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-12-11 20:23:41 -0800 |
commit | bffe512c33b3602d925b1e8c6934901aa3d499ec (patch) | |
tree | 764c22551232b203d28afb92d9723756139c79d5 /src/window.rs | |
parent | 4ba29314375337c7c4deca01b06450dbccfc0289 (diff) | |
download | alacritty-bffe512c33b3602d925b1e8c6934901aa3d499ec.tar.gz alacritty-bffe512c33b3602d925b1e8c6934901aa3d499ec.zip |
Add display impl for Points<T>
Diffstat (limited to 'src/window.rs')
-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 { |