io: allocate buffer directly on heap (#2634)

This commit is contained in:
htrefil
2020-07-01 14:57:25 -07:00
committed by GitHub
parent cf2c05317c
commit be02d36a86
+1 -1
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(),
}
}
}