ColorCode::new does not need to be a const fn

This commit is contained in:
Philipp Oppermann
2018-05-01 17:28:16 +02:00
parent 0aaeb52581
commit ba266f31c5
3 changed files with 17 additions and 12 deletions

View File

@@ -1,5 +1,4 @@
#![feature(lang_items)] // required for defining the panic handler
#![feature(const_fn)] // allow declaring functions as const
#![no_std] // don't link the Rust standard library
#![cfg_attr(not(test), no_main)] // disable all Rust-level entry points
#![cfg_attr(test, allow(dead_code, unused_macros))] // allow unused code in test mode