use hex::decode instead of extend_vec_from_hex
[rust-lightning] / fuzz / fuzz_targets / msg_targets / msg_update_add_htlc_target.rs
index 2a2c80701cb98232ba054a1452454178746dd41f..93cdaa42c9ba6b093265d42e0fc14cc5a0c54448 100644 (file)
@@ -36,13 +36,11 @@ fn main() {
        }
 }
 
+extern crate hex;
 #[cfg(test)]
 mod tests {
-       use utils::extend_vec_from_hex;
        #[test]
        fn duplicate_crash() {
-               let mut a = Vec::new();
-               extend_vec_from_hex("00", &mut a);
-               super::do_test(&a);
+               super::do_test(&::hex::decode("00").unwrap());
        }
 }