Skip to content

Commit b71f855

Browse files
committed
multiboot2: fix wrong lifetime bound
1 parent 149ce6f commit b71f855

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

multiboot2/src/tag_trait.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub trait TagTrait: Pointee {
5151
/// Callers must be sure that the "size" field of the provided [`Tag`] is
5252
/// sane and the underlying memory valid. The implementation of this trait
5353
/// **must have** a correct [`Self::dst_size`] implementation.
54-
unsafe fn from_base_tag<'a>(tag: &Tag) -> &'a Self {
54+
unsafe fn from_base_tag(tag: &Tag) -> &Self {
5555
let ptr = core::ptr::addr_of!(*tag);
5656
let ptr = ptr_meta::from_raw_parts(ptr.cast(), Self::dst_size(tag));
5757
&*ptr

0 commit comments

Comments
 (0)