Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
NeroReflex committed Dec 31, 2024
1 parent 70a6b27 commit 57c8a09
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/input/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,8 @@ impl Manager {
"Starting CompositeDevice at {composite_path} with the following sources: {source_device_ids:?}"
);
for id in source_device_ids {
self.source_devices_used.insert(id.clone(), composite_path.clone());
self.source_devices_used
.insert(id.clone(), composite_path.clone());
self.source_devices.insert(id, source_device.clone());
}

Expand Down Expand Up @@ -672,10 +673,15 @@ impl Manager {
}
log::debug!("Composite device stopped running: {composite_path}");
if let Err(e) = tx
.send(ManagerCommand::CompositeDeviceStopped(composite_path.clone()))
.send(ManagerCommand::CompositeDeviceStopped(
composite_path.clone(),
))
.await
{
log::error!("Error sending to composite device {composite_path} the stopped signal: {}", e.to_string());
log::error!(
"Error sending to composite device {composite_path} the stopped signal: {}",
e.to_string()
);
}
}))
}
Expand Down Expand Up @@ -1327,7 +1333,7 @@ impl Manager {
for i in 0u64.. {
let path = format!("{}/CompositeDevice{}", BUS_PREFIX, i);
if !self.composite_devices.contains_key(&path) {
return Ok(path)
return Ok(path);
}
}

Expand Down

0 comments on commit 57c8a09

Please sign in to comment.