Transition the code to Rust 2018

This commit is contained in:
Philipp Oppermann
2018-11-18 13:44:21 +01:00
parent 5091491a1f
commit 6e5ebc4bd9
10 changed files with 16 additions and 48 deletions

View File

@@ -2,11 +2,7 @@
#![cfg_attr(not(test), no_main)] // disable all Rust-level entry points
#![cfg_attr(test, allow(dead_code, unused_macros, unused_imports))]
// add the library as dependency (same crate name as executable)
#[macro_use]
extern crate blog_os;
use blog_os::exit_qemu;
use blog_os::{exit_qemu, serial_println};
use core::panic::PanicInfo;
/// This function is the entry point, since the linker looks for a function