From da1df408619d1f718c842fca0a59e999029aa0cf Mon Sep 17 00:00:00 2001 From: Philip Tricca Date: Fri, 22 Dec 2023 21:37:32 -0800 Subject: [PATCH] attest-data: fix Array::try_from(Vec) Turn Vec into a slice / [u8] before attempting to convert it into an Array. This prevents a call loop. --- attest-data/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attest-data/src/lib.rs b/attest-data/src/lib.rs index d80e730..d2c9ed6 100644 --- a/attest-data/src/lib.rs +++ b/attest-data/src/lib.rs @@ -71,7 +71,7 @@ impl TryFrom> for Array { /// Attempt to create an Array from the Vec provided. fn try_from(item: Vec) -> Result { - item.try_into() + item[..].try_into() } }