mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-09 00:00:08 +02:00
io: allocate buffer directly on heap (#2634)
This commit is contained in:
@@ -70,7 +70,7 @@ cfg_io_util! {
|
|||||||
amt: 0,
|
amt: 0,
|
||||||
pos: 0,
|
pos: 0,
|
||||||
cap: 0,
|
cap: 0,
|
||||||
buf: Box::new([0; 2048]),
|
buf: vec![0; 2048].into_boxed_slice(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user