mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-19 00:00:12 +02:00
Fix a couple of bugs
This commit is contained in:
+2
-1
@@ -1,8 +1,9 @@
|
||||
use std::{mem, ptr};
|
||||
use std::rt::heap;
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
use std::usize;
|
||||
|
||||
const MAX_ALLOC_SIZE: usize = (1 << 32) - 1;
|
||||
const MAX_ALLOC_SIZE: usize = usize::MAX;
|
||||
|
||||
/// Allocates memory to be used by Bufs or Bytes. Allows allocating memory
|
||||
/// using alternate stratgies than the default Rust heap allocator. Also does
|
||||
|
||||
Reference in New Issue
Block a user