rust-toolchain: 1.70 -> 1.75
This commit is contained in:
parent
50247a6890
commit
234e4da1f3
|
@ -195,7 +195,7 @@ impl Image {
|
||||||
self.image.len().try_into().unwrap(),
|
self.image.len().try_into().unwrap(),
|
||||||
);
|
);
|
||||||
loaded_image.set_load_options(
|
loaded_image.set_load_options(
|
||||||
load_options.as_ptr() as *const u8,
|
load_options.as_ptr(),
|
||||||
u32::try_from(load_options.len()).unwrap(),
|
u32::try_from(load_options.len()).unwrap(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "1.70.0"
|
channel = "1.75.0"
|
||||||
components = [ "rust-src" ]
|
components = [ "rust-src" ]
|
||||||
targets = [ "x86_64-unknown-uefi", "aarch64-unknown-uefi" ]
|
targets = [ "x86_64-unknown-uefi", "aarch64-unknown-uefi" ]
|
||||||
|
|
|
@ -9,8 +9,7 @@ use linux_bootloader::uefi_helpers::booted_image_file;
|
||||||
pub fn extract_bytes(pe_data: &[u8], section: &str) -> Result<Vec<u8>> {
|
pub fn extract_bytes(pe_data: &[u8], section: &str) -> Result<Vec<u8>> {
|
||||||
let bytes: Vec<u8> = pe_section(pe_data, section)
|
let bytes: Vec<u8> = pe_section(pe_data, section)
|
||||||
.ok_or(Status::INVALID_PARAMETER)?
|
.ok_or(Status::INVALID_PARAMETER)?
|
||||||
.try_into()
|
.into();
|
||||||
.map_err(|_| Status::INVALID_PARAMETER)?;
|
|
||||||
|
|
||||||
Ok(bytes)
|
Ok(bytes)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue