summaryrefslogtreecommitdiff
path: root/rust/kernel/driver.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/kernel/driver.rs')
-rw-r--r--rust/kernel/driver.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/kernel/driver.rs b/rust/kernel/driver.rs
index a4bf4498e592..f8dd7593e8dc 100644
--- a/rust/kernel/driver.rs
+++ b/rust/kernel/driver.rs
@@ -166,7 +166,7 @@ pub trait Adapter {
if raw_id.is_null() {
None
} else {
- // SAFETY: `DeviceId` is a `#[repr(transparent)` wrapper of `struct acpi_device_id`
+ // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct acpi_device_id`
// and does not add additional invariants, so it's safe to transmute.
let id = unsafe { &*raw_id.cast::<acpi::DeviceId>() };
@@ -200,7 +200,7 @@ pub trait Adapter {
if raw_id.is_null() {
None
} else {
- // SAFETY: `DeviceId` is a `#[repr(transparent)` wrapper of `struct of_device_id`
+ // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct of_device_id`
// and does not add additional invariants, so it's safe to transmute.
let id = unsafe { &*raw_id.cast::<of::DeviceId>() };