Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 26 additions & 36 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,10 @@ license = "GPL-3.0-only"
lto = true

[dependencies]
memoffset = "0.9"
orbclient = { version = "0.3.46", default-features = false }
orbfont = { version = "0.1.12", default-features = false, features = ["no-std"] }
redox_uefi_std = "0.1.13"

[dependencies.system76_ectool]
git = "https://github.com/system76/ec.git"
default-features = false
features = ["redox_hwio"]
redox_uefi_std = "0.1.14"
system76_ectool = { git = "https://github.com/system76/ec.git", default-features = false, features = ["redox_hwio"] }

[features]
default = []
3 changes: 1 addition & 2 deletions src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ use orbclient::{Color, Mode, Renderer};
use std::prelude::*;
use std::proto::Protocol;
use std::uefi::graphics::{GraphicsBltOp, GraphicsBltPixel, GraphicsOutput};
use std::uefi::guid::GRAPHICS_OUTPUT_PROTOCOL_GUID;

pub struct Output(pub &'static mut GraphicsOutput);

impl Protocol<GraphicsOutput> for Output {
fn guid() -> Guid {
GRAPHICS_OUTPUT_PROTOCOL_GUID
GraphicsOutput::GUID
}

fn new(inner: &'static mut GraphicsOutput) -> Self {
Expand Down
6 changes: 3 additions & 3 deletions src/fde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ macro_rules! list_entry {
($t:ident, $l:tt) => {
impl ListEntryObject<$t> for ListEntry<$t> {
unsafe fn object(&self) -> &$t {
unsafe { self.object_at(offset_of!($t, $l)) }
unsafe { self.object_at(mem::offset_of!($t, $l)) }
}

unsafe fn object_mut(&mut self) -> &mut $t {
unsafe { self.object_at_mut(offset_of!($t, $l)) }
unsafe { self.object_at_mut(mem::offset_of!($t, $l)) }
}
}
};
Expand Down Expand Up @@ -402,7 +402,7 @@ fn form_display_inner(form: &Form, user_input: &mut UserInput) -> Result<()> {
'render: loop {
let mut hotkey_helps = Vec::new();
for hotkey in form.HotKeyListHead.iter() {
let hotkey_help = ffi::nstr(hotkey.HelpString);
let hotkey_help = unsafe { ffi::nstr(hotkey.HelpString) };
hotkey_helps.push(hotkey_help);
}

Expand Down
3 changes: 1 addition & 2 deletions src/hii.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

use std::prelude::*;
use std::proto::Protocol;
use std::uefi::guid::HII_DATABASE_GUID;
use std::uefi::hii::database::HiiDatabase;

#[allow(dead_code)]
pub struct Database(pub &'static mut HiiDatabase);

impl Protocol<HiiDatabase> for Database {
fn guid() -> Guid {
HII_DATABASE_GUID
HiiDatabase::GUID
}

fn new(inner: &'static mut HiiDatabase) -> Self {
Expand Down
2 changes: 0 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#![no_main]
#![allow(non_snake_case)]

#[macro_use]
extern crate memoffset;
#[macro_use]
extern crate uefi_std as std;

Expand Down