aboutsummaryrefslogtreecommitdiff
path: root/src/serde.rs
diff options
context:
space:
mode:
authorGravatar Brad Dunbar <dunbarb2@gmail.com> 2024-02-06 13:46:49 -0500
committerGravatar GitHub <noreply@github.com> 2024-02-06 10:46:49 -0800
commitc6972d61328be113ec8e80c207815a4b84fe616c (patch)
tree0e79797333620ecf4cb85ab39f9d2823f0690d66 /src/serde.rs
parent47e83056f28e15e4ca68056a0136f3920b753783 (diff)
downloadbytes-c6972d61328be113ec8e80c207815a4b84fe616c.tar.gz
bytes-c6972d61328be113ec8e80c207815a4b84fe616c.tar.zst
bytes-c6972d61328be113ec8e80c207815a4b84fe616c.zip
Calculate original capacity only if necessary (#666)
We don't need the original capacity if the shared data is unique, so let's not calculate it until after that check.
Diffstat (limited to 'src/serde.rs')
0 files changed, 0 insertions, 0 deletions