From 2b6e0d2b8904fa9c8de74759b74498a5e27101d6 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 29 Jan 2023 17:32:41 +0800 Subject: [PATCH] fix return code bug on bulk deletion --- services/pddb/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/pddb/src/lib.rs b/services/pddb/src/lib.rs index 46c618ea1..9b2203c94 100644 --- a/services/pddb/src/lib.rs +++ b/services/pddb/src/lib.rs @@ -575,7 +575,7 @@ impl Pddb { .or(Err(Error::new(ErrorKind::Other, "Xous internal error")))?; buf.lend_mut(self.conn, Opcode::DictBulkDelete.to_u32().unwrap()) .or(Err(Error::new(ErrorKind::Other, "Xous internal error")))?; - let response = buf.as_flat::().unwrap(); + let response = buf.as_flat::().unwrap(); match response.retcode { ArchivedPddbRetcode::Ok => Ok(()), ArchivedPddbRetcode::AccessDenied => Err(Error::new(ErrorKind::NotFound, "Dictionary not found, or inaccessible")),