From bd8c28d341456912b7a7caeec30f8181a07ba9fc Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Tue, 23 Jul 2024 19:47:19 +0000 Subject: [PATCH] vmm: use inspect_err instead of map_err Signed-off-by: Wei Liu --- vmm/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vmm/src/lib.rs b/vmm/src/lib.rs index 04b8c0f0b..e07ee7f32 100644 --- a/vmm/src/lib.rs +++ b/vmm/src/lib.rs @@ -913,9 +913,8 @@ impl Vmm { // And then read the memory itself memory_manager .receive_memory_regions(&table, socket) - .map_err(|e| { + .inspect_err(|_| { Response::error().write_to(socket).ok(); - e })?; Response::ok().write_to(socket)?; Ok(())