From 7e8030042127be55e169cf8047c90597c917fa56 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Wed, 6 Jun 2018 10:46:19 +0200 Subject: [PATCH] Make the interrupts field private To avoid the confusion that the index starts at entry 32. Access is still possible through the implementations of the Index and IndexMut traits. --- src/structures/idt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/idt.rs b/src/structures/idt.rs index 54566f861..09017a1a2 100644 --- a/src/structures/idt.rs +++ b/src/structures/idt.rs @@ -352,7 +352,7 @@ pub struct Idt { /// external interrupt was recognized. /// - If the interrupt occurs as a result of executing the INTn instruction, the saved /// instruction pointer points to the instruction after the INTn. - pub interrupts: [IdtEntry; 256 - 32], + interrupts: [IdtEntry; 256 - 32], } impl Idt {