use hex::decode instead of extend_vec_from_hex
[rust-lightning] / fuzz / fuzz_targets / msg_targets / msg_channel_reestablish_target.rs
index dc9c2acd125859784da7c1081655c704ede341e7..09ad367e258136eb17021df623f7437335cde356 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());
        }
 }