aboutsummaryrefslogtreecommitdiff
path: root/tests/test_bytes.rs
diff options
context:
space:
mode:
authorGravatar Brad Dunbar <dunbarb2@gmail.com> 2024-04-24 08:23:39 -0400
committerGravatar GitHub <noreply@github.com> 2024-04-24 08:23:39 -0400
commitce09d7d358ab1d1d31ed9d0b52a747c0a21ea401 (patch)
tree6e51d996073d099e7ffcf19c406efedc8fca131f /tests/test_bytes.rs
parent9d3ec1cffb76141b4706bb289beced8b04ecac4a (diff)
downloadbytes-ce09d7d358ab1d1d31ed9d0b52a747c0a21ea401.tar.gz
bytes-ce09d7d358ab1d1d31ed9d0b52a747c0a21ea401.tar.zst
bytes-ce09d7d358ab1d1d31ed9d0b52a747c0a21ea401.zip
Bytes::split_off - check fast path first (#693)
Follow up to https://github.com/tokio-rs/bytes/pull/689 * If `at == self.len()`, we already know `at <= self.len()`. * If `at == 0`, we already know `at <= self.len()`.
Diffstat (limited to 'tests/test_bytes.rs')
0 files changed, 0 insertions, 0 deletions