Switch to 2018 edition
Most of this was generated by the absolutely extraordinary `cargo fix` subcommand. There were still 2 errors and a few warnings to patch up, but compared to the normal 600+ errors, I'd say the fixer did a damn good job! I'm also amazed that I could still start the VM after this, I half expected some kinds of runtime failure...
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
use core::sync::atomic::Ordering;
|
||||
|
||||
use context::{arch, contexts, Context, Status, CONTEXT_ID};
|
||||
use context::signal::signal_handler;
|
||||
use gdt;
|
||||
use interrupt;
|
||||
use interrupt::irq::PIT_TICKS;
|
||||
use time;
|
||||
use crate::context::{arch, contexts, Context, Status, CONTEXT_ID};
|
||||
use crate::context::signal::signal_handler;
|
||||
use crate::gdt;
|
||||
use crate::interrupt;
|
||||
use crate::interrupt::irq::PIT_TICKS;
|
||||
use crate::time;
|
||||
|
||||
unsafe fn update(context: &mut Context, cpu_id: usize) {
|
||||
// Take ownership if not already owned
|
||||
@@ -74,7 +74,7 @@ pub unsafe fn switch() -> bool {
|
||||
interrupt::pause();
|
||||
}
|
||||
|
||||
let cpu_id = ::cpu_id();
|
||||
let cpu_id = crate::cpu_id();
|
||||
|
||||
let from_ptr;
|
||||
let mut to_ptr = 0 as *mut Context;
|
||||
|
||||
Reference in New Issue
Block a user