From d97a8a321067a88ae9dea22fcc3e6f81137c9c58 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Mon, 1 Aug 2016 12:14:56 +0200 Subject: [PATCH] Silence dead code warnings --- src/interrupts/idt.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/interrupts/idt.rs b/src/interrupts/idt.rs index 1bd6403f..810a38a1 100644 --- a/src/interrupts/idt.rs +++ b/src/interrupts/idt.rs @@ -91,11 +91,13 @@ impl EntryOptions { self } + #[allow(dead_code)] pub fn set_privilege_level(&mut self, dpl: u16) -> &mut Self { self.0.set_range(13..15, dpl); self } + #[allow(dead_code)] pub fn set_stack_index(&mut self, index: u16) -> &mut Self { self.0.set_range(0..3, index); self