Skip to content

Commit 4d3a92f

Browse files
committed
fix: Fix Derives in common/mod.rs
1 parent c81f8dc commit 4d3a92f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/common/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@
33
use std::fmt::{self, Debug, Display, Formatter};
44

55
/// Height and Width of a Display (`i32`)
6+
#[derive(Default, Clone)]
67
pub struct Resolution(i32, i32);
78

89
/// X/Y positions of a display.
10+
#[derive(Default, Clone)]
911
pub struct Position(i32, i32);
1012

1113
/// `Vec` type of the `Display` type, exposed on a platform-dependent basis.
1214
pub type Displays = Vec<crate::Display>;
1315

1416
/// `Vec` type of the `Resolution` type, generally exposing a collection of available resolutions.
17+
#[derive(Default, Clone)]
1518
pub struct Resolutions(Vec<Resolution>);
1619

1720
impl Display for Resolution {
@@ -31,7 +34,6 @@ impl Debug for Resolutions {
3134
f.debug_list()
3235
.entries(self.0.iter())
3336
.finish()
34-
.expect("Unable to format `Debug` output for `Resolutions` struct.");
3537
}
3638
}
3739

0 commit comments

Comments
 (0)