mirror of
https://github.com/edera-dev/sprout.git
synced 2026-11-05 05:12:20 +00:00
chore(upgrade): upgrade to rust v1.97.1, bump deps and migrate, bump images (#95)
This commit is contained in:
14 files changed
+83
-76
No files matched your search
@@ -1,5 +1,5 @@
|
||||
use alloc::string::{String, ToString};
|
||||
use anyhow::Result;
|
||||
use anyhow::{Context, Result, anyhow};
|
||||
use core::ptr::null_mut;
|
||||
use jaarg::{
|
||||
ErrorUsageWriter, ErrorUsageWriterContext, HelpWriter, HelpWriterContext, Opt, Opts,
|
||||
@@ -131,11 +131,15 @@ impl SproutOptions {
|
||||
) {
|
||||
ParseResult::ContinueSuccess => Ok(result),
|
||||
ParseResult::ExitSuccess => unsafe {
|
||||
uefi::boot::exit(uefi::boot::image_handle(), Status::SUCCESS, 0, null_mut());
|
||||
uefi::boot::exit(uefi::boot::image_handle(), Status::SUCCESS, 0, null_mut())
|
||||
.context("unable to exit")?;
|
||||
Err(anyhow!("unable to exit"))
|
||||
},
|
||||
|
||||
ParseResult::ExitError => unsafe {
|
||||
uefi::boot::exit(uefi::boot::image_handle(), Status::ABORTED, 0, null_mut());
|
||||
uefi::boot::exit(uefi::boot::image_handle(), Status::ABORTED, 0, null_mut())
|
||||
.context("unable to exit")?;
|
||||
Err(anyhow!("unable to exit"))
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user