Skip to content

Conversation

stepancheg
Copy link
Contributor

Same as in Vec: max allocation size in Rust is isize::MAX.

bytes/src/buf/buf_mut.rs

Lines 1601 to 1604 in 3e44f88

fn remaining_mut(&self) -> usize {
// A vector can never have more than isize::MAX bytes
isize::MAX as usize - self.len()
}

@Darksonn Darksonn merged commit 4b53a29 into tokio-rs:master Aug 20, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants