mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 06:17: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");
|
||||
qemu.args([
|
||||
"-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",
|
||||
&format!("format=raw,if=pflash,file={}", ovmf_vars.to_str().unwrap()),
|
||||
&format!("format=raw,if=pflash,file={}", ovmf_vars.display()),
|
||||
"-drive",
|
||||
&format!("format=raw,file={}", env!("UEFI_IMAGE")),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user