Skip to content

Commit

Permalink
fix clippy updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna-f1sh committed May 7, 2024
1 parent be3eb76 commit c22b863
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@ pub fn truncate_string(s: &mut String, len: usize) {
pub fn auto_max_string_len<B: Eq + Hash, T>(
blocks: &[impl Block<B, T>],
offset: usize,
variable_lens: &Vec<usize>,
#[allow(clippy::ptr_arg)] variable_lens: &Vec<usize>,
settings: &PrintSettings,
) -> Option<usize> {
if variable_lens.is_empty() {
Expand Down
6 changes: 3 additions & 3 deletions src/lsusb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,12 +613,12 @@ pub mod profiler {
};

if let Some(root_hub) = root {
new_bus.name = root_hub.name.to_owned();
new_bus.host_controller = root_hub
root_hub.name.clone_into(&mut new_bus.name);
root_hub
.manufacturer
.as_ref()
.unwrap_or(&String::new())
.to_owned();
.clone_into(&mut new_bus.host_controller);
new_bus.pci_vendor = root_hub.vendor_id;
new_bus.pci_device = root_hub.product_id;
}
Expand Down

0 comments on commit c22b863

Please sign in to comment.