We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b314c5 commit 8998440Copy full SHA for 8998440
uefi/src/data_types/mod.rs
@@ -117,7 +117,7 @@ pub trait Align {
117
/// this will return 7. Returns 0 if `val == 0`.
118
#[must_use]
119
fn offset_up_to_alignment(val: usize) -> usize {
120
- assert!(Self::alignment() != 0);
+ assert_ne!(Self::alignment(), 0);
121
let r = val % Self::alignment();
122
if r == 0 { 0 } else { Self::alignment() - r }
123
}
@@ -169,7 +169,9 @@ pub use strs::{
169
UnalignedCStr16Error,
170
};
171
172
-/// These functions are used in the implementation of the [`cstr8`] macro.
+/// These functions are used in the implementation of the [`cstr8!`] macro.
173
+///
174
+/// [`cstr8!`]: crate::cstr8
175
#[doc(hidden)]
176
pub use strs::{str_num_latin1_chars, str_to_latin1};
177
0 commit comments