1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-11 13:51:01 -05:00

Add display impl for Points<T>

This commit is contained in:
Joe Wilm 2016-12-10 11:27:42 -08:00
parent 4ba2931437
commit bffe512c33

View file

@ -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 { impl ::std::error::Error for Error {
fn cause(&self) -> Option<&::std::error::Error> { fn cause(&self) -> Option<&::std::error::Error> {
match *self { match *self {