Skip to content

Commit 9208993

Browse files
bwidawskDrakulix
authored andcommitted
Add Display impl for connectors
1 parent 32aec87 commit 9208993

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/control/connector.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ pub struct Info {
6060
pub(crate) subpixel: SubPixel,
6161
}
6262

63+
impl std::fmt::Display for Info {
64+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
65+
write!(f, "{}-{}", self.interface.as_str(), self.interface_id)
66+
}
67+
}
68+
6369
impl Info {
6470
/// Returns the handle to this connector.
6571
pub fn handle(&self) -> Handle {

0 commit comments

Comments
 (0)