Skip to content

Commit

Permalink
Update src/providers/vmware/amd64.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Lebon <[email protected]>
  • Loading branch information
pothos and jlebon authored Oct 5, 2023
1 parent d162a8c commit 3ebadb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/vmware/amd64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl VmwareProvider {
fn fetch_guestinfo(erpc: &mut vmw_backdoor::EnhancedChan, key: &str) -> Result<Option<String>> {
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)
}
Expand Down

0 comments on commit 3ebadb5

Please sign in to comment.