cargo fmt

This commit is contained in:
Vukašin Vojinović 2025-05-18 18:42:32 +02:00
parent 6cdb6366fe
commit 8c1b3ac090
3 changed files with 17 additions and 17 deletions

View file

@ -153,13 +153,14 @@ macro_rules! make_button {
($spin_button:expr, $icon:expr, $operation:expr) => {{
#[cfg(target_os = "linux")]
let button = icon::from_name($icon);
#[cfg(not(target_os = "linux"))]
let button = icon::from_svg_bytes(
include_bytes!(concat!["../../res/icons/", $icon ,".svg"])
).symbolic(true);
button.apply(button::icon)
let button =
icon::from_svg_bytes(include_bytes!(concat!["../../res/icons/", $icon, ".svg"]))
.symbolic(true);
button
.apply(button::icon)
.on_press(($spin_button.on_press)($operation(
$spin_button.value,
$spin_button.step,
@ -252,4 +253,4 @@ mod tests {
fn decrement() {
assert_eq!(super::decrement(0i32, 10, 15, 35), 15);
}
}
}