remove unreachable in msgpack (#3691)

This commit is contained in:
Raphael Darley 2024-03-13 12:37:03 +00:00 committed by GitHub
parent 4804426648
commit 2e27000c8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -139,7 +139,7 @@ impl TryFrom<Value> 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"),
}
}
}