From 3ebadb5090373150c968140534f5b14de99ba758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20L=C3=BCke?= Date: Thu, 5 Oct 2023 15:18:23 +0200 Subject: [PATCH] Update src/providers/vmware/amd64.rs Co-authored-by: Jonathan Lebon --- src/providers/vmware/amd64.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/vmware/amd64.rs b/src/providers/vmware/amd64.rs index c293c9ce..cf548964 100644 --- a/src/providers/vmware/amd64.rs +++ b/src/providers/vmware/amd64.rs @@ -61,7 +61,7 @@ impl VmwareProvider { fn fetch_guestinfo(erpc: &mut vmw_backdoor::EnhancedChan, key: &str) -> Result> { let guestinfo = erpc .get_guestinfo(key.as_bytes()) - .context(format!("failed to retrieve guestinfo for {}", key))? + .with_context(|| format!("failed to retrieve guestinfo for {}", key))? .map(|bytes| String::from_utf8_lossy(&bytes).into_owned()); Ok(guestinfo) }