Skip to content

Commit 246a8c6

Browse files
committed
Requires Rust 1.81
1 parent ea5c5a5 commit 246a8c6

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ name = "zfi"
33
description = "Zero-cost and safe interface to UEFI firmware"
44
version = "0.2.0"
55
license = "MIT"
6-
repository = "https://github.com/ultimicro/zfi"
6+
repository = "https://github.com/ultimaweapon/zfi"
77
edition = "2021"
8+
rust-version = "1.81"
89

910
[dependencies]
1011
bitflags = "2.4"

testing/src/qemu/mod.rs

+1-17
Original file line numberDiff line numberDiff line change
@@ -116,23 +116,7 @@ pub fn gen_qemu_test(proj: PathBuf, mut root: PathBuf, name: &str, body: &str) -
116116
r#" ::zfi::println!("zfi:panic:{{}}:{{}}:{{}}", l.file(), l.line(), l.column());"#
117117
)
118118
.unwrap();
119-
writeln!(data).unwrap();
120-
writeln!(
121-
data,
122-
r#" if let Some(&p) = i.payload().downcast_ref::<&str>() {{"#
123-
)
124-
.unwrap();
125-
writeln!(data, r#" ::zfi::println!("{{p}}");"#).unwrap();
126-
writeln!(
127-
data,
128-
r#" }} else if let Some(p) = i.payload().downcast_ref::<::alloc::string::String>() {{"#
129-
)
130-
.unwrap();
131-
writeln!(data, r#" ::zfi::println!("{{p}}");"#).unwrap();
132-
writeln!(data, r#" }} else {{"#).unwrap();
133-
writeln!(data, r#" ::zfi::println!("{{i}}");"#).unwrap();
134-
writeln!(data, r#" }}"#).unwrap();
135-
writeln!(data).unwrap();
119+
writeln!(data, r#" ::zfi::println!("{{}}", i.message());"#).unwrap();
136120
writeln!(data, r#" ::zfi::println!("zfi:end");"#).unwrap();
137121
writeln!(data).unwrap();
138122
writeln!(data, r#" loop {{}}"#).unwrap();

0 commit comments

Comments
 (0)