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:
parent
4ba2931437
commit
bffe512c33
1 changed files with 6 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue