aboutsummaryrefslogtreecommitdiff
path: root/src/window.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-12-10 11:27:42 -0800
committerJoe Wilm <joe@jwilm.com>2016-12-11 20:23:41 -0800
commitbffe512c33b3602d925b1e8c6934901aa3d499ec (patch)
tree764c22551232b203d28afb92d9723756139c79d5 /src/window.rs
parent4ba29314375337c7c4deca01b06450dbccfc0289 (diff)
downloadalacritty-bffe512c33b3602d925b1e8c6934901aa3d499ec.tar.gz
alacritty-bffe512c33b3602d925b1e8c6934901aa3d499ec.zip
Add display impl for Points<T>
Diffstat (limited to 'src/window.rs')
-rw-r--r--src/window.rs6
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 {