From e5160f54de029e4a51adf2e4b6a67e2e24757d88 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Mon, 5 Aug 2019 09:05:40 -0400 Subject: Remove un-needed compiler features from simple example. --- examples/simple/logger.rs | 2 +- examples/simple/main.rs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'examples') 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 WriteWrapper where W: serial::Write, { - 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; -- cgit v1.2.3