@@ -678,118 +678,118 @@ pub struct DeviceSubType(pub u8);
678678
679679impl DeviceSubType {
680680 /// PCI Device Path.
681- pub const HARDWARE_PCI : DeviceSubType = DeviceSubType ( 1 ) ;
681+ pub const HARDWARE_PCI : Self = Self ( 1 ) ;
682682 /// PCCARD Device Path.
683- pub const HARDWARE_PCCARD : DeviceSubType = DeviceSubType ( 2 ) ;
683+ pub const HARDWARE_PCCARD : Self = Self ( 2 ) ;
684684 /// Memory-mapped Device Path.
685- pub const HARDWARE_MEMORY_MAPPED : DeviceSubType = DeviceSubType ( 3 ) ;
685+ pub const HARDWARE_MEMORY_MAPPED : Self = Self ( 3 ) ;
686686 /// Vendor-Defined Device Path.
687- pub const HARDWARE_VENDOR : DeviceSubType = DeviceSubType ( 4 ) ;
687+ pub const HARDWARE_VENDOR : Self = Self ( 4 ) ;
688688 /// Controller Device Path.
689- pub const HARDWARE_CONTROLLER : DeviceSubType = DeviceSubType ( 5 ) ;
689+ pub const HARDWARE_CONTROLLER : Self = Self ( 5 ) ;
690690 /// BMC Device Path.
691- pub const HARDWARE_BMC : DeviceSubType = DeviceSubType ( 6 ) ;
691+ pub const HARDWARE_BMC : Self = Self ( 6 ) ;
692692
693693 /// ACPI Device Path.
694- pub const ACPI : DeviceSubType = DeviceSubType ( 1 ) ;
694+ pub const ACPI : Self = Self ( 1 ) ;
695695 /// Expanded ACPI Device Path.
696- pub const ACPI_EXPANDED : DeviceSubType = DeviceSubType ( 2 ) ;
696+ pub const ACPI_EXPANDED : Self = Self ( 2 ) ;
697697 /// ACPI _ADR Device Path.
698- pub const ACPI_ADR : DeviceSubType = DeviceSubType ( 3 ) ;
698+ pub const ACPI_ADR : Self = Self ( 3 ) ;
699699 /// NVDIMM Device Path.
700- pub const ACPI_NVDIMM : DeviceSubType = DeviceSubType ( 4 ) ;
700+ pub const ACPI_NVDIMM : Self = Self ( 4 ) ;
701701
702702 /// ATAPI Device Path.
703- pub const MESSAGING_ATAPI : DeviceSubType = DeviceSubType ( 1 ) ;
703+ pub const MESSAGING_ATAPI : Self = Self ( 1 ) ;
704704 /// SCSI Device Path.
705- pub const MESSAGING_SCSI : DeviceSubType = DeviceSubType ( 2 ) ;
705+ pub const MESSAGING_SCSI : Self = Self ( 2 ) ;
706706 /// Fibre Channel Device Path.
707- pub const MESSAGING_FIBRE_CHANNEL : DeviceSubType = DeviceSubType ( 3 ) ;
707+ pub const MESSAGING_FIBRE_CHANNEL : Self = Self ( 3 ) ;
708708 /// 1394 Device Path.
709- pub const MESSAGING_1394 : DeviceSubType = DeviceSubType ( 4 ) ;
709+ pub const MESSAGING_1394 : Self = Self ( 4 ) ;
710710 /// USB Device Path.
711- pub const MESSAGING_USB : DeviceSubType = DeviceSubType ( 5 ) ;
711+ pub const MESSAGING_USB : Self = Self ( 5 ) ;
712712 /// I2O Device Path.
713- pub const MESSAGING_I2O : DeviceSubType = DeviceSubType ( 6 ) ;
713+ pub const MESSAGING_I2O : Self = Self ( 6 ) ;
714714 /// Infiniband Device Path.
715- pub const MESSAGING_INFINIBAND : DeviceSubType = DeviceSubType ( 9 ) ;
715+ pub const MESSAGING_INFINIBAND : Self = Self ( 9 ) ;
716716 /// Vendor-Defined Device Path.
717- pub const MESSAGING_VENDOR : DeviceSubType = DeviceSubType ( 10 ) ;
717+ pub const MESSAGING_VENDOR : Self = Self ( 10 ) ;
718718 /// MAC Address Device Path.
719- pub const MESSAGING_MAC_ADDRESS : DeviceSubType = DeviceSubType ( 11 ) ;
719+ pub const MESSAGING_MAC_ADDRESS : Self = Self ( 11 ) ;
720720 /// IPV4 Device Path.
721- pub const MESSAGING_IPV4 : DeviceSubType = DeviceSubType ( 12 ) ;
721+ pub const MESSAGING_IPV4 : Self = Self ( 12 ) ;
722722 /// IPV6 Device Path.
723- pub const MESSAGING_IPV6 : DeviceSubType = DeviceSubType ( 13 ) ;
723+ pub const MESSAGING_IPV6 : Self = Self ( 13 ) ;
724724 /// UART Device Path.
725- pub const MESSAGING_UART : DeviceSubType = DeviceSubType ( 14 ) ;
725+ pub const MESSAGING_UART : Self = Self ( 14 ) ;
726726 /// USB Class Device Path.
727- pub const MESSAGING_USB_CLASS : DeviceSubType = DeviceSubType ( 15 ) ;
727+ pub const MESSAGING_USB_CLASS : Self = Self ( 15 ) ;
728728 /// USB WWID Device Path.
729- pub const MESSAGING_USB_WWID : DeviceSubType = DeviceSubType ( 16 ) ;
729+ pub const MESSAGING_USB_WWID : Self = Self ( 16 ) ;
730730 /// Device Logical Unit.
731- pub const MESSAGING_DEVICE_LOGICAL_UNIT : DeviceSubType = DeviceSubType ( 17 ) ;
731+ pub const MESSAGING_DEVICE_LOGICAL_UNIT : Self = Self ( 17 ) ;
732732 /// SATA Device Path.
733- pub const MESSAGING_SATA : DeviceSubType = DeviceSubType ( 18 ) ;
733+ pub const MESSAGING_SATA : Self = Self ( 18 ) ;
734734 /// iSCSI Device Path node (base information).
735- pub const MESSAGING_ISCSI : DeviceSubType = DeviceSubType ( 19 ) ;
735+ pub const MESSAGING_ISCSI : Self = Self ( 19 ) ;
736736 /// VLAN Device Path node.
737- pub const MESSAGING_VLAN : DeviceSubType = DeviceSubType ( 20 ) ;
737+ pub const MESSAGING_VLAN : Self = Self ( 20 ) ;
738738 /// Fibre Channel Ex Device Path.
739- pub const MESSAGING_FIBRE_CHANNEL_EX : DeviceSubType = DeviceSubType ( 21 ) ;
739+ pub const MESSAGING_FIBRE_CHANNEL_EX : Self = Self ( 21 ) ;
740740 /// Serial Attached SCSI (SAS) Ex Device Path.
741- pub const MESSAGING_SCSI_SAS_EX : DeviceSubType = DeviceSubType ( 22 ) ;
741+ pub const MESSAGING_SCSI_SAS_EX : Self = Self ( 22 ) ;
742742 /// NVM Express Namespace Device Path.
743- pub const MESSAGING_NVME_NAMESPACE : DeviceSubType = DeviceSubType ( 23 ) ;
743+ pub const MESSAGING_NVME_NAMESPACE : Self = Self ( 23 ) ;
744744 /// Uniform Resource Identifiers (URI) Device Path.
745- pub const MESSAGING_URI : DeviceSubType = DeviceSubType ( 24 ) ;
745+ pub const MESSAGING_URI : Self = Self ( 24 ) ;
746746 /// UFS Device Path.
747- pub const MESSAGING_UFS : DeviceSubType = DeviceSubType ( 25 ) ;
747+ pub const MESSAGING_UFS : Self = Self ( 25 ) ;
748748 /// SD (Secure Digital) Device Path.
749- pub const MESSAGING_SD : DeviceSubType = DeviceSubType ( 26 ) ;
749+ pub const MESSAGING_SD : Self = Self ( 26 ) ;
750750 /// Bluetooth Device Path.
751- pub const MESSAGING_BLUETOOTH : DeviceSubType = DeviceSubType ( 27 ) ;
751+ pub const MESSAGING_BLUETOOTH : Self = Self ( 27 ) ;
752752 /// Wi-Fi Device Path.
753- pub const MESSAGING_WIFI : DeviceSubType = DeviceSubType ( 28 ) ;
753+ pub const MESSAGING_WIFI : Self = Self ( 28 ) ;
754754 /// eMMC (Embedded Multi-Media Card) Device Path.
755- pub const MESSAGING_EMMC : DeviceSubType = DeviceSubType ( 29 ) ;
755+ pub const MESSAGING_EMMC : Self = Self ( 29 ) ;
756756 /// BluetoothLE Device Path.
757- pub const MESSAGING_BLUETOOTH_LE : DeviceSubType = DeviceSubType ( 30 ) ;
757+ pub const MESSAGING_BLUETOOTH_LE : Self = Self ( 30 ) ;
758758 /// DNS Device Path.
759- pub const MESSAGING_DNS : DeviceSubType = DeviceSubType ( 31 ) ;
759+ pub const MESSAGING_DNS : Self = Self ( 31 ) ;
760760 /// NVDIMM Namespace Device Path.
761- pub const MESSAGING_NVDIMM_NAMESPACE : DeviceSubType = DeviceSubType ( 32 ) ;
761+ pub const MESSAGING_NVDIMM_NAMESPACE : Self = Self ( 32 ) ;
762762 /// REST Service Device Path.
763- pub const MESSAGING_REST_SERVICE : DeviceSubType = DeviceSubType ( 33 ) ;
763+ pub const MESSAGING_REST_SERVICE : Self = Self ( 33 ) ;
764764 /// NVME over Fabric (NVMe-oF) Namespace Device Path.
765- pub const MESSAGING_NVME_OF_NAMESPACE : DeviceSubType = DeviceSubType ( 34 ) ;
765+ pub const MESSAGING_NVME_OF_NAMESPACE : Self = Self ( 34 ) ;
766766
767767 /// Hard Drive Media Device Path.
768- pub const MEDIA_HARD_DRIVE : DeviceSubType = DeviceSubType ( 1 ) ;
768+ pub const MEDIA_HARD_DRIVE : Self = Self ( 1 ) ;
769769 /// CD-ROM Media Device Path.
770- pub const MEDIA_CD_ROM : DeviceSubType = DeviceSubType ( 2 ) ;
770+ pub const MEDIA_CD_ROM : Self = Self ( 2 ) ;
771771 /// Vendor-Defined Media Device Path.
772- pub const MEDIA_VENDOR : DeviceSubType = DeviceSubType ( 3 ) ;
772+ pub const MEDIA_VENDOR : Self = Self ( 3 ) ;
773773 /// File Path Media Device Path.
774- pub const MEDIA_FILE_PATH : DeviceSubType = DeviceSubType ( 4 ) ;
774+ pub const MEDIA_FILE_PATH : Self = Self ( 4 ) ;
775775 /// Media Protocol Device Path.
776- pub const MEDIA_PROTOCOL : DeviceSubType = DeviceSubType ( 5 ) ;
776+ pub const MEDIA_PROTOCOL : Self = Self ( 5 ) ;
777777 /// PIWG Firmware File.
778- pub const MEDIA_PIWG_FIRMWARE_FILE : DeviceSubType = DeviceSubType ( 6 ) ;
778+ pub const MEDIA_PIWG_FIRMWARE_FILE : Self = Self ( 6 ) ;
779779 /// PIWG Firmware Volume.
780- pub const MEDIA_PIWG_FIRMWARE_VOLUME : DeviceSubType = DeviceSubType ( 7 ) ;
780+ pub const MEDIA_PIWG_FIRMWARE_VOLUME : Self = Self ( 7 ) ;
781781 /// Relative Offset Range.
782- pub const MEDIA_RELATIVE_OFFSET_RANGE : DeviceSubType = DeviceSubType ( 8 ) ;
782+ pub const MEDIA_RELATIVE_OFFSET_RANGE : Self = Self ( 8 ) ;
783783 /// RAM Disk Device Path.
784- pub const MEDIA_RAM_DISK : DeviceSubType = DeviceSubType ( 9 ) ;
784+ pub const MEDIA_RAM_DISK : Self = Self ( 9 ) ;
785785
786786 /// BIOS Boot Specification Device Path.
787- pub const BIOS_BOOT_SPECIFICATION : DeviceSubType = DeviceSubType ( 1 ) ;
787+ pub const BIOS_BOOT_SPECIFICATION : Self = Self ( 1 ) ;
788788
789789 /// End this instance of a Device Path and start a new one.
790- pub const END_INSTANCE : DeviceSubType = DeviceSubType ( 0x01 ) ;
790+ pub const END_INSTANCE : Self = Self ( 0x01 ) ;
791791 /// End entire Device Path.
792- pub const END_ENTIRE : DeviceSubType = DeviceSubType ( 0xff ) ;
792+ pub const END_ENTIRE : Self = Self ( 0xff ) ;
793793}
794794
795795/// Error returned when attempting to convert from a `&[u8]` to a
0 commit comments