Update no_std test to 2018 edition

This commit is contained in:
David Tolnay
2018-12-31 21:42:22 -05:00
parent 05ab569a80
commit c5ccb995ad
2 changed files with 3 additions and 6 deletions
+1 -4
View File
@@ -1,8 +1,6 @@
#![feature(lang_items, start)]
#![no_std]
extern crate libc;
#[start]
fn start(_argc: isize, _argv: *const *const u8) -> isize {
0
@@ -21,8 +19,7 @@ fn panic(_info: &core::panic::PanicInfo) -> ! {
//////////////////////////////////////////////////////////////////////////////
#[macro_use]
extern crate serde_derive;
use serde::{Serialize, Deserialize};
#[derive(Serialize, Deserialize)]
struct Unit;