Pass &[E] into Vector::write() instead of &Vec<E>
This commit is contained in:
parent
cc183efda4
commit
2d2e4aad86
|
@ -73,7 +73,7 @@ impl Vector {
|
|||
(0..count).into_iter().map(|_| func(&mut reader)).collect()
|
||||
}
|
||||
|
||||
pub fn write<W: Write, E, F>(mut writer: W, vec: &Vec<E>, func: F) -> io::Result<()>
|
||||
pub fn write<W: Write, E, F>(mut writer: W, vec: &[E], func: F) -> io::Result<()>
|
||||
where
|
||||
F: Fn(&mut W, &E) -> io::Result<()>,
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue