Import lazy_static through normal use

This commit is contained in:
Philipp Oppermann
2018-11-13 11:36:40 +01:00
parent 21f3152dc0
commit e7d4012653
9 changed files with 11 additions and 4 deletions

View File

@@ -382,6 +382,8 @@ We already imported the `lazy_static` crate when we [created an abstraction for
```rust
// in src/interrupts.rs
use lazy_static::lazy_static;
lazy_static! {
static ref IDT: InterruptDescriptorTable = {
let mut idt = InterruptDescriptorTable::new();