mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
io: allocate buffer directly on heap (#2634)
This commit is contained in:
parent
cf2c05317c
commit
be02d36a86
@ -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(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user