aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2019-08-05 09:05:40 -0400
committerBrian Cully <bjc@kublai.com>2019-08-05 09:05:40 -0400
commite5160f54de029e4a51adf2e4b6a67e2e24757d88 (patch)
treefada8965ea0206887939662caf9d44a42d1bcd2a
parent5fe4d5c69fc6ae821c224e6ed4ddd86c285c5c6b (diff)
downloadatsamd-usb-host-e5160f54de029e4a51adf2e4b6a67e2e24757d88.tar.gz
atsamd-usb-host-e5160f54de029e4a51adf2e4b6a67e2e24757d88.zip
Remove un-needed compiler features from simple example.
-rw-r--r--examples/simple/logger.rs2
-rwxr-xr-xexamples/simple/main.rs3
2 files changed, 1 insertions, 4 deletions
diff --git a/examples/simple/logger.rs b/examples/simple/logger.rs
index 9641dac..be9d391 100644
--- a/examples/simple/logger.rs
+++ b/examples/simple/logger.rs
@@ -49,7 +49,7 @@ impl<W> WriteWrapper<W>
where
W: serial::Write<u8>,
{
- pub const fn new(writer: W) -> Self {
+ pub fn new(writer: W) -> Self {
Self { w: writer }
}
}
diff --git a/examples/simple/main.rs b/examples/simple/main.rs
index 84b5e33..8fbf0ea 100755
--- a/examples/simple/main.rs
+++ b/examples/simple/main.rs
@@ -1,8 +1,5 @@
#![no_std]
#![no_main]
-#![feature(const_fn)]
-#![feature(const_transmute)]
-#![allow(dead_code)]
mod logger;
mod macros;