Skip to content

Commit 97158a4

Browse files
Fix missing_safety_doc lint
The CI clippy check started failing with latest nightly due to missing `# Safety` section in the docstring for the `Identify` trait. The docstring already documents safety well, so just add the required section header.
1 parent a5d8c3e commit 97158a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/data_types/guid.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ impl fmt::Display for Guid {
8686
/// for more specific traits such as `Protocol` or `FileProtocolInfo`, which
8787
/// indicate in which circumstances an `Identify`-tagged type should be used.
8888
///
89+
/// # Safety
90+
///
8991
/// Implementing `Identify` is unsafe because attaching an incorrect GUID to a
9092
/// type can lead to type unsafety on both the Rust and UEFI side.
9193
///

0 commit comments

Comments
 (0)