(&self, id: &Option<String>)
| 5221 | } |
| 5222 | |
| 5223 | fn validate_identifier(&self, id: &Option<String>) -> DeviceManagerResult<()> { |
| 5224 | if let Some(id) = id { |
| 5225 | if id.starts_with("__") { |
| 5226 | return Err(DeviceManagerError::InvalidIdentifier(id.clone())); |
| 5227 | } |
| 5228 | |
| 5229 | if self.device_tree.lock().unwrap().contains_key(id) { |
| 5230 | return Err(DeviceManagerError::IdentifierNotUnique(id.clone())); |
| 5231 | } |
| 5232 | } |
| 5233 | |
| 5234 | Ok(()) |
| 5235 | } |
| 5236 | |
| 5237 | pub(crate) fn acpi_platform_addresses(&self) -> &AcpiPlatformAddresses { |
| 5238 | &self.acpi_platform_addresses |
no test coverage detected