Skip to content

Commit

Permalink
Requires Rust 1.81
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimaweapon committed Sep 22, 2024
1 parent ea5c5a5 commit 246a8c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ name = "zfi"
description = "Zero-cost and safe interface to UEFI firmware"
version = "0.2.0"
license = "MIT"
repository = "https://github.com/ultimicro/zfi"
repository = "https://github.com/ultimaweapon/zfi"
edition = "2021"
rust-version = "1.81"

[dependencies]
bitflags = "2.4"
Expand Down
18 changes: 1 addition & 17 deletions testing/src/qemu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,23 +116,7 @@ pub fn gen_qemu_test(proj: PathBuf, mut root: PathBuf, name: &str, body: &str) -
r#" ::zfi::println!("zfi:panic:{{}}:{{}}:{{}}", l.file(), l.line(), l.column());"#
)
.unwrap();
writeln!(data).unwrap();
writeln!(
data,
r#" if let Some(&p) = i.payload().downcast_ref::<&str>() {{"#
)
.unwrap();
writeln!(data, r#" ::zfi::println!("{{p}}");"#).unwrap();
writeln!(
data,
r#" }} else if let Some(p) = i.payload().downcast_ref::<::alloc::string::String>() {{"#
)
.unwrap();
writeln!(data, r#" ::zfi::println!("{{p}}");"#).unwrap();
writeln!(data, r#" }} else {{"#).unwrap();
writeln!(data, r#" ::zfi::println!("{{i}}");"#).unwrap();
writeln!(data, r#" }}"#).unwrap();
writeln!(data).unwrap();
writeln!(data, r#" ::zfi::println!("{{}}", i.message());"#).unwrap();
writeln!(data, r#" ::zfi::println!("zfi:end");"#).unwrap();
writeln!(data).unwrap();
writeln!(data, r#" loop {{}}"#).unwrap();
Expand Down

0 comments on commit 246a8c6

Please sign in to comment.