Skip to content

Commit a462287

Browse files
Merge pull request #1872 from rust-osdev/uefi-raw-serial-fix-mutability
uefi-raw: serial: fix mutability
2 parents 82007aa + e8e4330 commit a462287

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

uefi-raw/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- Added `FormBrowser2Protocol`.
1212

1313
## Changed
14+
- Switched `*const Self` to `*mut Self` in `SerialIoProtocol::set_attributes()`
1415

1516

1617
# uefi-raw - v0.13.0 (2025-11-05)

uefi-raw/src/protocol/console/serial.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pub struct SerialIoProtocol {
8383
pub revision: u32,
8484
pub reset: unsafe extern "efiapi" fn(*mut Self) -> Status,
8585
pub set_attributes: unsafe extern "efiapi" fn(
86-
*const Self,
86+
*mut Self,
8787
baud_rate: u64,
8888
receive_fifo_depth: u32,
8989
timeout: u32,

0 commit comments

Comments
 (0)