From b34f4a4c6f5e82c7aed783cc6ded0112e30b5c61 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 27 Jan 2026 22:08:28 +0800 Subject: [PATCH] remove failure case in Drop implementation this is some technical debt - Drop doesn't coordinate across all instances of an object and so the disconnect isn't able to know exactly when to disconnect. This will require some guru meditation later on to correct this in a "proper" fashion. --- libs/bao1x-api/src/iox.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/bao1x-api/src/iox.rs b/libs/bao1x-api/src/iox.rs index 45f6dbb97..bce11974e 100644 --- a/libs/bao1x-api/src/iox.rs +++ b/libs/bao1x-api/src/iox.rs @@ -336,7 +336,7 @@ impl Drop for IoxHal { // connection. if REFCOUNT.fetch_sub(1, Ordering::Relaxed) == 1 { unsafe { - xous::disconnect(self.conn).unwrap(); + xous::disconnect(self.conn).ok(); } } }