Closed paolobarbolini closed 4 months ago
You know, this makes me realize that
advance
could be simplified to callclear
instead ofset_len(0)
.
Yeah I had skipped clear
because it can't avoid the branch inside truncate
, but I guess if that was a real problem it could be solved within clear
itself.
Incorporates the improvement from #698 into the
must_use
suggestion ofBytesMut::split
.