clippy delint

This commit is contained in:
Astro 2019-04-27 15:25:27 +02:00
parent 70236a2060
commit e6395eaf9d

View File

@ -123,7 +123,7 @@ fn main() -> ! {
let mut last_output = 0_u32; let mut last_output = 0_u32;
loop { loop {
let now = timer::now().0; let now = timer::now().0;
let instant = Instant::from_millis(now as i64); let instant = Instant::from_millis(i64::from(now));
led_blue.on(); led_blue.on();
cortex_m::interrupt::free(net::clear_pending); cortex_m::interrupt::free(net::clear_pending);
server.poll(instant) server.poll(instant)
@ -136,7 +136,7 @@ fn main() -> ! {
if now - last_output >= OUTPUT_INTERVAL { if now - last_output >= OUTPUT_INTERVAL {
led_red.on(); led_red.on();
let adc_value = adc_input.read(); let adc_value = adc_input.read();
write!(server, "t={},pa3={}\r\n", now, adc_value).unwrap(); writeln!(server, "t={},pa3={}\r", now, adc_value).unwrap();
last_output = now; last_output = now;
led_red.off(); led_red.off();
} }