@@ -4,8 +4,8 @@ mod uuid_v4;
44mod uuid_v7;
55
66use minicbor:: data:: Tag ;
7- pub use uuid_v4:: UuidV4 ;
8- pub use uuid_v7:: UuidV7 ;
7+ pub use uuid_v4:: UuidV4 as V4 ;
8+ pub use uuid_v7:: UuidV7 as V7 ;
99
1010/// Invalid Doc Type UUID
1111pub const INVALID_UUID : uuid:: Uuid = uuid:: Uuid :: from_bytes ( [ 0x00 ; 16 ] ) ;
@@ -77,12 +77,12 @@ fn encode_cbor_uuid<W: minicbor::encode::Write>(
7777#[ cfg( test) ]
7878mod tests {
7979
80- use super :: { UuidV4 , UuidV7 } ;
80+ use super :: { V4 , V7 } ;
8181 use crate :: uuid:: CborContext ;
8282
8383 #[ test]
8484 fn test_cbor_uuid_v4_roundtrip ( ) {
85- let uuid: UuidV4 = uuid:: Uuid :: new_v4 ( ) . into ( ) ;
85+ let uuid: V4 = uuid:: Uuid :: new_v4 ( ) . into ( ) ;
8686 let mut bytes = Vec :: new ( ) ;
8787 minicbor:: encode_with ( uuid, & mut bytes, & mut CborContext :: Untagged ) . unwrap ( ) ;
8888 let decoded = minicbor:: decode_with ( bytes. as_slice ( ) , & mut CborContext :: Untagged ) . unwrap ( ) ;
@@ -91,7 +91,7 @@ mod tests {
9191
9292 #[ test]
9393 fn test_cbor_uuid_v7_roundtrip ( ) {
94- let uuid: UuidV7 = uuid:: Uuid :: now_v7 ( ) . into ( ) ;
94+ let uuid: V7 = uuid:: Uuid :: now_v7 ( ) . into ( ) ;
9595 let mut bytes = Vec :: new ( ) ;
9696 minicbor:: encode_with ( uuid, & mut bytes, & mut CborContext :: Untagged ) . unwrap ( ) ;
9797 let decoded = minicbor:: decode_with ( bytes. as_slice ( ) , & mut CborContext :: Untagged ) . unwrap ( ) ;
@@ -100,7 +100,7 @@ mod tests {
100100
101101 #[ test]
102102 fn test_tagged_cbor_uuid_v4_roundtrip ( ) {
103- let uuid: UuidV4 = uuid:: Uuid :: new_v4 ( ) . into ( ) ;
103+ let uuid: V4 = uuid:: Uuid :: new_v4 ( ) . into ( ) ;
104104 let mut bytes = Vec :: new ( ) ;
105105 minicbor:: encode_with ( uuid, & mut bytes, & mut CborContext :: Tagged ) . unwrap ( ) ;
106106 let decoded = minicbor:: decode_with ( bytes. as_slice ( ) , & mut CborContext :: Tagged ) . unwrap ( ) ;
@@ -109,7 +109,7 @@ mod tests {
109109
110110 #[ test]
111111 fn test_tagged_cbor_uuid_v7_roundtrip ( ) {
112- let uuid: UuidV7 = uuid:: Uuid :: now_v7 ( ) . into ( ) ;
112+ let uuid: V7 = uuid:: Uuid :: now_v7 ( ) . into ( ) ;
113113 let mut bytes = Vec :: new ( ) ;
114114 minicbor:: encode_with ( uuid, & mut bytes, & mut CborContext :: Tagged ) . unwrap ( ) ;
115115 let decoded = minicbor:: decode_with ( bytes. as_slice ( ) , & mut CborContext :: Tagged ) . unwrap ( ) ;
@@ -118,7 +118,7 @@ mod tests {
118118
119119 #[ test]
120120 fn test_optional_cbor_uuid_v4_roundtrip ( ) {
121- let uuid: UuidV4 = uuid:: Uuid :: new_v4 ( ) . into ( ) ;
121+ let uuid: V4 = uuid:: Uuid :: new_v4 ( ) . into ( ) ;
122122
123123 let mut bytes = Vec :: new ( ) ;
124124 minicbor:: encode_with ( uuid, & mut bytes, & mut CborContext :: Untagged ) . unwrap ( ) ;
@@ -133,7 +133,7 @@ mod tests {
133133
134134 #[ test]
135135 fn test_optional_cbor_uuid_v7_roundtrip ( ) {
136- let uuid: UuidV7 = uuid:: Uuid :: now_v7 ( ) . into ( ) ;
136+ let uuid: V7 = uuid:: Uuid :: now_v7 ( ) . into ( ) ;
137137
138138 let mut bytes = Vec :: new ( ) ;
139139 minicbor:: encode_with ( uuid, & mut bytes, & mut CborContext :: Untagged ) . unwrap ( ) ;
0 commit comments