From 2cb7693956865c8c07b93b26055a16e58eb863ba Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Wed, 10 Jan 2024 14:11:13 -0700 Subject: [PATCH] ecdsa: fix `new_wycheproof_test!` macro (#770) Updates `from_exact_iter` => `from_iter` --- ecdsa/src/dev.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs index 9f5ac8af..948c5ea4 100644 --- a/ecdsa/src/dev.rs +++ b/ecdsa/src/dev.rs @@ -169,7 +169,7 @@ macro_rules! new_wycheproof_test { let iter = core::iter::repeat(0) .take(point_len - data.len()) .chain(data.iter().cloned()); - elliptic_curve::FieldBytes::::from_exact_iter(iter).unwrap() + elliptic_curve::FieldBytes::::from_iter(iter) } }