remove redundant code in _start (#438)

"as *const u8" seems to be not needed
This commit is contained in:
刘冲
2018-06-13 17:48:11 +08:00
committed by Philipp Oppermann
parent 97ce17925e
commit 34f5733114

View File

@@ -275,7 +275,7 @@ static HELLO: &[u8] = b"Hello World!";
#[no_mangle]
pub extern "C" fn _start() -> ! {
let vga_buffer = 0xb8000 as *const u8 as *mut u8;
let vga_buffer = 0xb8000 as *mut u8;
for (i, &byte) in HELLO.iter().enumerate() {
unsafe {