Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Oct 30, 2024
1 parent e89ead8 commit eaf19a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main/src/domain/midi_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl SampleOffset {
self.0
}

pub fn to_seconds(&self, sample_rate: Hz) -> DurationInSeconds {
pub fn to_seconds(self, sample_rate: Hz) -> DurationInSeconds {
DurationInSeconds::new_panic(self.0 as f64 / sample_rate.get())
}
}
6 changes: 3 additions & 3 deletions main/src/infrastructure/ui/mapping_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7778,13 +7778,13 @@ fn pick_virtual_control_element(
control_element_domains::daw::PREDEFINED_VIRTUAL_BUTTON_NAMES
.iter()
.chain(control_element_domains::daw::PREDEFINED_VIRTUAL_MULTI_NAMES.iter())
.map(|e| *e)
.copied()
.collect();
let grid_control_names: Vec<_> =
control_element_domains::grid::PREDEFINED_VIRTUAL_BUTTON_NAMES
.iter()
.chain(control_element_domains::grid::PREDEFINED_VIRTUAL_MULTI_NAMES.iter())
.map(|e| *e)
.copied()
.collect();

let include_actual_element = |mappings: &[&SharedMapping]| -> bool {
Expand Down Expand Up @@ -8122,7 +8122,7 @@ fn build_slash_menu_entries(
}
} else {
// A nested entry (menu).
let remaining_names: Vec<_> = group.map(|name| extract_remaining_name(name)).collect();
let remaining_names: Vec<_> = group.map(extract_remaining_name).collect();
let new_prefix = if prefix.is_empty() {
key.to_string()
} else {
Expand Down

0 comments on commit eaf19a2

Please sign in to comment.