From ecb60ec326349fbac39dd49589d3a62ac68c815a Mon Sep 17 00:00:00 2001 From: V4zha Date: Thu, 24 Apr 2025 18:48:52 +0530 Subject: [PATCH] Update index.md change to_str().unwrap() to display() in format! args --- blog/content/edition-3/posts/02-booting/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blog/content/edition-3/posts/02-booting/index.md b/blog/content/edition-3/posts/02-booting/index.md index a2fdec98..5d2e6a4e 100644 --- a/blog/content/edition-3/posts/02-booting/index.md +++ b/blog/content/edition-3/posts/02-booting/index.md @@ -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")), ]);