Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ssalonen committed Dec 15, 2024
1 parent 303eb7f commit e98082e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/bin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,12 @@ pub fn main() -> Result<(), &'static str> {
.device_types(CecDeviceTypeVec::new(CecDeviceType::AudioSystem))
.build()
.expect("Could not construct config");
let connection: CecConnection = connection_config
.open()
.unwrap_or_else(|_| panic!("Adapter open failed, port {:?}", app_config.hdmi_port.clone()));
let connection: CecConnection = connection_config.open().unwrap_or_else(|_| {
panic!(
"Adapter open failed, port {:?}",
app_config.hdmi_port.clone()
)
});

trace!("Active source: {:?}", connection.get_active_source());

Expand Down

0 comments on commit e98082e

Please sign in to comment.