efw 0.1.0

Framework for writing UEFI applications
1
2
3
4
5
6
7
8
9
10
11
12
use super::*;

pub type Result<T> = core::result::Result<T, bits::Status>;

pub(crate) fn status_to_result(status: efi::bits::Status) -> Result<()> {
    if status == efi::bits::Status::SUCCESS {
        Ok(())
    }
    else {
        Err(status)
    }
}