From 088e92cb515fbf65c97a91055642b747a3703da0 Mon Sep 17 00:00:00 2001 From: Zakarum Date: Wed, 8 Nov 2023 10:44:28 +0100 Subject: [PATCH] Fix test --- src/tests/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/mod.rs b/src/tests/mod.rs index 291c5ce..41dea60 100644 --- a/src/tests/mod.rs +++ b/src/tests/mod.rs @@ -379,7 +379,7 @@ fn test_ref_in_enum() { let mut buffer = [0u8; 256]; let size = serialize::<[Test], _>([&value], &mut buffer).unwrap(); - let data = deserialize::<[Test], Vec>(&buffer[..size.0]).unwrap(); + let data = deserialize_with_size::<[Test], Vec>(&buffer[..size.0], size.1).unwrap(); assert_eq!(data, [value]); }