Run cargo fmt

This commit is contained in:
Paul van Tilburg 2019-04-06 23:30:15 +02:00
parent cf5238f4f4
commit 2da5ca7117
Signed by: paul
GPG Key ID: C6DE073EDA9EEC4D
1 changed files with 2 additions and 6 deletions

View File

@ -128,9 +128,7 @@ const APP: () = {
resources.led_ring.lock(|led_ring| {
if led_ring.is_mode_cycle() {
led_ring.advance();
schedule
.cycle_leds(scheduled + PERIOD.cycles())
.unwrap();
schedule.cycle_leds(scheduled + PERIOD.cycles()).unwrap();
}
});
}
@ -157,9 +155,7 @@ const APP: () = {
if led_ring.is_mode_accel() {
let directions = [acc_y < 0, acc_x < 0, acc_y > 0, acc_x > 0];
led_ring.specific_on(directions);
schedule
.accel_leds(scheduled + PERIOD.cycles())
.unwrap();
schedule.accel_leds(scheduled + PERIOD.cycles()).unwrap();
}
})
}