opentitan
opentitan copied to clipboard
[opentitanlib] Address upcoming lints, UartKey comparison fix.
Address compiler lints from nightly-2024-01-01
. This will enable updating the nightly Rust toolchain.
One of those lints points out that proxy::nonblocking_uart::UartKey
compares wide pointers including metadata. Instead, UartKey should only consider the address portion of the pointer. This adjust UartKey's Hash and PartialEq implementations to only consider the address portion of the pointer, and adds a test for the Hash implementation.
@jesultra: I added you so you can double-check that I correctly understood the purpose of UartKey.