From 4a2d33f0f3d8ff8d4840aaa30695ece98677cac7 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Wed, 24 Jan 2024 13:10:50 -0500 Subject: [PATCH] Re-format. --- src/validator/cbor.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/validator/cbor.rs b/src/validator/cbor.rs index 45938fef..95ae83b6 100644 --- a/src/validator/cbor.rs +++ b/src/validator/cbor.rs @@ -373,7 +373,7 @@ impl<'a> CBORValidator<'a> { /// Extract the underlying CBOR Value. pub fn extract_cbor(self) -> Value { - self.cbor + self.cbor } fn validate_array_items( @@ -3911,11 +3911,11 @@ mod tests { #[test] fn extract_cbor() { - use ciborium::value::Value; + use ciborium::value::Value; - let cbor = Value::Float(1.23); - let cddl = cddl_from_str("start = any", true).unwrap(); - let cv = CBORValidator::new(&cddl, cbor, None); - assert_eq!(cv.extract_cbor(), Value::Float(1.23)); + let cbor = Value::Float(1.23); + let cddl = cddl_from_str("start = any", true).unwrap(); + let cv = CBORValidator::new(&cddl, cbor, None); + assert_eq!(cv.extract_cbor(), Value::Float(1.23)); } }