fix(witness): remove explicit type

This commit is contained in:
aagbotemi 2025-04-22 04:55:48 +01:00
parent 5b572c5976
commit 9eaaf114b0
No known key found for this signature in database
GPG Key ID: 37C137D831F0A852
1 changed files with 5 additions and 1 deletions

View File

@ -232,7 +232,11 @@ impl Witness {
I: IntoIterator<Item = T>,
T: AsRef<str>,
{
let result: Vec<Vec<u8>> = iter.into_iter().map(|hex_str| Vec::from_hex(hex_str.as_ref())).collect::<Result<Vec<_>, _>>()?;
let result = iter
.into_iter()
.map(|hex_str| Vec::from_hex(hex_str.as_ref()))
.collect::<Result<Vec<_>, _>>()?;
Ok(Self::from_slice(&result))
}
}