diff --git a/zcash_primitives/src/serialize.rs b/zcash_primitives/src/serialize.rs index 81d600964..f1429438e 100644 --- a/zcash_primitives/src/serialize.rs +++ b/zcash_primitives/src/serialize.rs @@ -73,7 +73,7 @@ impl Vector { (0..count).into_iter().map(|_| func(&mut reader)).collect() } - pub fn write(mut writer: W, vec: &Vec, func: F) -> io::Result<()> + pub fn write(mut writer: W, vec: &[E], func: F) -> io::Result<()> where F: Fn(&mut W, &E) -> io::Result<()>, {