Update index.md

change to_str().unwrap() to display() in format! args
This commit is contained in:
V4zha
2025-04-24 18:48:52 +05:30
committed by GitHub
parent 8a1267477a
commit ecb60ec326

View File

@@ -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")),
]);