Skip to content

Commit 8998440

Browse files
committed
uefi: fix cargo doc
Caught by latest nightly version.
1 parent 6b314c5 commit 8998440

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

uefi/src/data_types/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ pub trait Align {
117117
/// this will return 7. Returns 0 if `val == 0`.
118118
#[must_use]
119119
fn offset_up_to_alignment(val: usize) -> usize {
120-
assert!(Self::alignment() != 0);
120+
assert_ne!(Self::alignment(), 0);
121121
let r = val % Self::alignment();
122122
if r == 0 { 0 } else { Self::alignment() - r }
123123
}
@@ -169,7 +169,9 @@ pub use strs::{
169169
UnalignedCStr16Error,
170170
};
171171

172-
/// These functions are used in the implementation of the [`cstr8`] macro.
172+
/// These functions are used in the implementation of the [`cstr8!`] macro.
173+
///
174+
/// [`cstr8!`]: crate::cstr8
173175
#[doc(hidden)]
174176
pub use strs::{str_num_latin1_chars, str_to_latin1};
175177

0 commit comments

Comments
 (0)