Format no_std test code with rustfmt 0.4.1

This commit is contained in:
David Tolnay 2018-04-07 19:22:24 -07:00
parent 3e535325e1
commit 5efb22ebee
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -18,15 +18,17 @@ fn start(_argc: isize, _argv: *const *const u8) -> isize {
#[lang = "eh_personality"]
#[no_mangle]
pub extern fn rust_eh_personality() {}
pub extern "C" fn rust_eh_personality() {}
#[lang = "panic_fmt"]
#[no_mangle]
pub extern fn rust_begin_panic(_msg: core::fmt::Arguments,
_file: &'static str,
_line: u32) -> ! {
pub extern "C" fn rust_begin_panic(
_msg: core::fmt::Arguments,
_file: &'static str,
_line: u32,
) -> ! {
unsafe {
libc::abort()
libc::abort();
}
}
@ -45,7 +47,9 @@ struct Newtype(u8);
struct Tuple(u8, u8);
#[derive(Serialize, Deserialize)]
struct Struct { f: u8 }
struct Struct {
f: u8,
}
#[derive(Serialize, Deserialize)]
enum Enum {