Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update index.md
change to_str().unwrap() to display() in format! args
  • Loading branch information
v4zha authored Apr 24, 2025
commit ecb60ec326349fbac39dd49589d3a62ac68c815a
4 changes: 2 additions & 2 deletions blog/content/edition-3/posts/02-booting/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
]);
Expand Down
Loading