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) }