Skip to content

Commit 01f7d6c

Browse files
committed
fix: uuid type
1 parent 132acdb commit 01f7d6c

File tree

1 file changed

+2
-2
lines changed
  • rust/catalyst-types/src/uuid

1 file changed

+2
-2
lines changed

rust/catalyst-types/src/uuid/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ pub use v7::UuidV7;
1010
pub const INVALID_UUID: uuid::Uuid = uuid::Uuid::from_bytes([0x00; 16]);
1111

1212
/// CBOR tag for UUID content.
13-
const UUID_CBOR_TAG: u64 = 37;
13+
pub const UUID_CBOR_TAG: u64 = 37;
1414

1515
/// Decode `CBOR` encoded `UUID`.
16-
pub fn decode_cbor_uuid(val: &coset::cbor::Value) -> anyhow::Result<uuid::Uuid> {
16+
pub(crate) fn decode_cbor_uuid(val: &coset::cbor::Value) -> anyhow::Result<uuid::Uuid> {
1717
let Some((UUID_CBOR_TAG, coset::cbor::Value::Bytes(bytes))) = val.as_tag() else {
1818
anyhow::bail!("Invalid CBOR encoded UUID type");
1919
};

0 commit comments

Comments
 (0)