yoda: warning cleanup sweep (dead code + clippy --fix) (squashed)
Squash of 4 yoda commits: -84437e21yoda: libcosmic-yoda dead-code purge (14->0 warnings) -999db0a4yoda: cosmic-theme cleanup (4->0 warnings) — workspace at 0 warnings total -4743bb8eyoda: cargo clippy --fix on libcosmic-yoda (115->33 warnings) -675f3b59chore: reduce local stack warnings
This commit is contained in:
parent
f9ff7496f3
commit
03f3769373
36 changed files with 181 additions and 219 deletions
|
|
@ -23,7 +23,7 @@ pub fn spin_button<'a, T, M>(
|
|||
where
|
||||
T: Copy + Sub<Output = T> + Add<Output = T> + PartialOrd,
|
||||
{
|
||||
let mut button = SpinButton::new(
|
||||
let button = SpinButton::new(
|
||||
label,
|
||||
value,
|
||||
step,
|
||||
|
|
@ -34,9 +34,11 @@ where
|
|||
);
|
||||
|
||||
#[cfg(feature = "a11y")]
|
||||
{
|
||||
let button = {
|
||||
let mut button = button;
|
||||
button = button.name(name.into());
|
||||
}
|
||||
button
|
||||
};
|
||||
|
||||
button
|
||||
}
|
||||
|
|
@ -54,20 +56,22 @@ pub fn vertical<'a, T, M>(
|
|||
where
|
||||
T: Copy + Sub<Output = T> + Add<Output = T> + PartialOrd,
|
||||
{
|
||||
let mut button = SpinButton::new(
|
||||
let button = SpinButton::new(
|
||||
label,
|
||||
value,
|
||||
step,
|
||||
min,
|
||||
max,
|
||||
Orientation::Horizontal,
|
||||
Orientation::Vertical,
|
||||
on_press,
|
||||
);
|
||||
|
||||
#[cfg(feature = "a11y")]
|
||||
{
|
||||
let button = {
|
||||
let mut button = button;
|
||||
button = button.name(name.into());
|
||||
}
|
||||
button
|
||||
};
|
||||
|
||||
button
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue