Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna-f1sh committed Oct 9, 2024
1 parent 0c1b355 commit 90131dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/profiler/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ impl SystemProfile {

/// Returns mutable reference to [`Bus`] `number` if it exists in data
pub fn get_bus_mut(&mut self, number: u8) -> Option<&mut Bus> {
self.buses.iter_mut().find(|b| b.usb_bus_number == Some(number))
self.buses
.iter_mut()
.find(|b| b.usb_bus_number == Some(number))
}

/// Search for reference to [`Device`] at `port_path` in all buses
Expand Down

0 comments on commit 90131dd

Please sign in to comment.