Browse Source

Bump versions for acpi and aml to 0.5.0

Also fix a few warnings
Isaac Woods 5 years ago
parent
commit
2a17c0d728
3 changed files with 3 additions and 5 deletions
  1. 1 1
      acpi/Cargo.toml
  2. 1 1
      aml/Cargo.toml
  3. 1 3
      aml/src/resource.rs

+ 1 - 1
acpi/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "acpi"
-version = "0.4.0"
+version = "0.5.0"
 authors = ["Isaac Woods"]
 repository = "https://github.com/rust-osdev/acpi"
 description = "Library for parsing ACPI tables"

+ 1 - 1
aml/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "aml"
-version = "0.4.0"
+version = "0.5.0"
 authors = ["Isaac Woods"]
 repository = "https://github.com/rust-osdev/acpi"
 description = "Library for parsing AML"

+ 1 - 3
aml/src/resource.rs

@@ -10,7 +10,7 @@ pub enum Resource {
 /// Parse a `ResourceDescriptor`. Returns `AmlError::IncompatibleValueConversion` if the passed value is not a
 /// `Buffer`.
 pub(crate) fn resource_descriptor(descriptor: &AmlValue) -> Result<Resource, AmlError> {
-    if let AmlValue::Buffer { bytes, size } = descriptor {
+    if let AmlValue::Buffer { bytes, size: _ } = descriptor {
         /*
          * If bit 7 of Byte 0 is set, it's a large descriptor. If not, it's a small descriptor.
          */
@@ -42,8 +42,6 @@ pub(crate) fn resource_descriptor(descriptor: &AmlValue) -> Result<Resource, Aml
              * bytes contain the actual data items.
              */
             let descriptor_type = bytes[0].get_bits(0..7);
-            let length = LittleEndian::read_u16(&[bytes[1], bytes[2]]);
-
             match descriptor_type {
                 0x01 => unimplemented!(),
                 0x02 => unimplemented!(),