mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Update index.md
change to_str().unwrap() to display() in format! args
This commit is contained in:
@@ -1025,9 +1025,9 @@ fn main() {
|
|||||||
let mut qemu = Command::new("qemu-system-x86_64");
|
let mut qemu = Command::new("qemu-system-x86_64");
|
||||||
qemu.args([
|
qemu.args([
|
||||||
"-drive",
|
"-drive",
|
||||||
&format!("format=raw,if=pflash,readonly=on,file={}", ovmf_code.to_str().unwrap()),
|
&format!("format=raw,if=pflash,readonly=on,file={}", ovmf_code.display()),
|
||||||
"-drive",
|
"-drive",
|
||||||
&format!("format=raw,if=pflash,file={}", ovmf_vars.to_str().unwrap()),
|
&format!("format=raw,if=pflash,file={}", ovmf_vars.display()),
|
||||||
"-drive",
|
"-drive",
|
||||||
&format!("format=raw,file={}", env!("UEFI_IMAGE")),
|
&format!("format=raw,file={}", env!("UEFI_IMAGE")),
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user