Update Rust to nightly-2019-09-19. This version matches Tock PR 1349, and includes core::future::Future as a stabilized feature.
diff --git a/.travis.yml b/.travis.yml index 9b5cb1b..26f22ef 100644 --- a/.travis.yml +++ b/.travis.yml
@@ -1,6 +1,6 @@ language: rust rust: - - nightly-2018-11-30 + - nightly-2019-09-19 os: - linux
diff --git a/examples/gpio.rs b/examples/gpio.rs index ff047da..a09a2b2 100644 --- a/examples/gpio.rs +++ b/examples/gpio.rs
@@ -12,7 +12,7 @@ loop { pin.set_high(); timer::sleep(Duration::from_ms(500)); - pin.set_low();; + pin.set_low(); timer::sleep(Duration::from_ms(500)); } }
diff --git a/examples/hardware_test.rs b/examples/hardware_test.rs index 542ee49..c224f58 100644 --- a/examples/hardware_test.rs +++ b/examples/hardware_test.rs
@@ -1,4 +1,3 @@ -#![feature(alloc)] #![no_std] /// Hardware regression tests. /// Need P0.03 and P0.04 to be connected (on a nrf52-dk).
diff --git a/examples/simple_ble.rs b/examples/simple_ble.rs index dc99fd1..a467f97 100644 --- a/examples/simple_ble.rs +++ b/examples/simple_ble.rs
@@ -45,7 +45,7 @@ loop { led.on(); timer::sleep(Duration::from_ms(500)); - led.off();; + led.off(); timer::sleep(Duration::from_ms(500)); } }
diff --git a/rust-toolchain b/rust-toolchain index 6fd720c..e304127 100644 --- a/rust-toolchain +++ b/rust-toolchain
@@ -1 +1 @@ -nightly-2018-11-30 +nightly-2019-09-19
diff --git a/src/ble_parser.rs b/src/ble_parser.rs index 6280af3..1d12b19 100644 --- a/src/ble_parser.rs +++ b/src/ble_parser.rs
@@ -81,5 +81,4 @@ } assert_eq!(find(&buf, 0xF2), None); } - }
diff --git a/src/lib.rs b/src/lib.rs index 49ccdcc..9b0888d 100644 --- a/src/lib.rs +++ b/src/lib.rs
@@ -1,11 +1,4 @@ -#![feature( - asm, - alloc, - alloc_error_handler, - core_intrinsics, - lang_items, - naked_functions -)] +#![feature(asm, alloc_error_handler, core_intrinsics, lang_items, naked_functions)] #![no_std] extern crate alloc;