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 149ce6f commit b71f855Copy full SHA for b71f855
multiboot2/src/tag_trait.rs
@@ -51,7 +51,7 @@ pub trait TagTrait: Pointee {
51
/// Callers must be sure that the "size" field of the provided [`Tag`] is
52
/// sane and the underlying memory valid. The implementation of this trait
53
/// **must have** a correct [`Self::dst_size`] implementation.
54
- unsafe fn from_base_tag<'a>(tag: &Tag) -> &'a Self {
+ unsafe fn from_base_tag(tag: &Tag) -> &Self {
55
let ptr = core::ptr::addr_of!(*tag);
56
let ptr = ptr_meta::from_raw_parts(ptr.cast(), Self::dst_size(tag));
57
&*ptr
0 commit comments