Explorar o código

Correct type names to be camel-case

Isaac Woods %!s(int64=6) %!d(string=hai) anos
pai
achega
40df802e8e
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      acpi/src/hpet.rs

+ 4 - 4
acpi/src/hpet.rs

@@ -5,9 +5,9 @@ use bit_field::BitField;
 pub enum PageProtection {
     None,
     /// Access to the adjacent 3KB to the base address will not generate a fault.
-    Protected_4K,
+    Protected4K,
     /// Access to the adjacent 64KB to the base address will not generate a fault.
-    Protected_64K,
+    Protected64K,
     Other,
 }
 
@@ -51,8 +51,8 @@ pub(crate) fn parse_hpet(
         clock_tick_unit: hpet.clock_tick_unit,
         page_protection: match hpet.page_protection_oem.get_bits(0..5) {
             0 => PageProtection::None,
-            1 => PageProtection::Protected_4K,
-            2 => PageProtection::Protected_64K,
+            1 => PageProtection::Protected4K,
+            2 => PageProtection::Protected64K,
             3..=15 => PageProtection::Other,
             _ => unreachable!(),
         },