Skip to content

Commit 441c2ba

Browse files
committed
build: Add missing lifetime annotations
Signed-off-by: Akira Moroo <[email protected]>
1 parent b2c27d6 commit 441c2ba

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/efi/block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl<'a> BlockWrapper<'a> {
121121
start_lba: u64,
122122
last_lba: u64,
123123
uuid: [u8; 16],
124-
) -> *mut BlockWrapper {
124+
) -> *mut BlockWrapper<'a> {
125125
let last_block = (*block).get_capacity() - 1;
126126

127127
let (status, new_address) = super::ALLOCATOR

src/fat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ fn compare_name(name: &str, de: &DirectoryEntry) -> bool {
629629
}
630630

631631
impl<'a> Filesystem<'a> {
632-
pub fn new(device: &'a dyn SectorRead, start: u64, last: u64) -> Filesystem {
632+
pub fn new(device: &'a dyn SectorRead, start: u64, last: u64) -> Filesystem<'a> {
633633
Filesystem {
634634
device,
635635
start,

src/pe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl<'a> Loader<'a> {
4242
))]
4343
const OPTIONAL_HEADER_MAGIC: u16 = 0x20b; // PE32+
4444

45-
pub fn new(file: &'a mut dyn crate::fat::Read) -> Loader {
45+
pub fn new(file: &'a mut dyn crate::fat::Read) -> Loader<'a> {
4646
Loader {
4747
file,
4848
num_sections: 0,

0 commit comments

Comments
 (0)