diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/simple/logger.rs | 2 | ||||
-rwxr-xr-x | examples/simple/main.rs | 3 |
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; |