io: allocate buffer directly on heap (#2634)

This commit is contained in:
htrefil 2020-07-01 23:57:25 +02:00 committed by GitHub
parent cf2c05317c
commit be02d36a86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ cfg_io_util! {
amt: 0,
pos: 0,
cap: 0,
buf: Box::new([0; 2048]),
buf: vec![0; 2048].into_boxed_slice(),
}
}
}