From 2e27000c8e7c2e677f62904ffad6c117e168fc26 Mon Sep 17 00:00:00 2001 From: Raphael Darley Date: Wed, 13 Mar 2024 12:37:03 +0000 Subject: [PATCH] remove unreachable in msgpack (#3691) --- src/rpc/format/msgpack/convert.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/format/msgpack/convert.rs b/src/rpc/format/msgpack/convert.rs index 7cdcba2f..35049f88 100644 --- a/src/rpc/format/msgpack/convert.rs +++ b/src/rpc/format/msgpack/convert.rs @@ -139,7 +139,7 @@ impl TryFrom for Pack { Value::Bytes(v) => Ok(Pack(Data::Binary(v.into_inner()))), Value::Thing(v) => Ok(Pack(Data::Ext(TAG_RECORDID, v.to_raw().as_bytes().to_vec()))), // We shouldn't reach here - _ => unreachable!(), + _ => Err("Found unsupported SurrealQL value being encoded into a msgpack value"), } } }