strbuf 0.3.0 is out. Since 0.2.1 the compiler deletes buffers for us (implements delete), and 0.3.0 adds into-string, which consumes a buffer and hands its allocation to the returned String without copying.
One site: web.carp:600-601, the chunked-response builder, where to-string is followed by StringBuf.delete sb. That becomes (StringBuf.into-string sb).
No pin to bump here, since StringBuf arrives transitively through http. The version this repo builds against follows from bumping the http pin at web.carp:37.
Nothing breaks if this waits: manual delete is still an ownership transfer and does not double free.
strbuf 0.3.0 is out. Since 0.2.1 the compiler deletes buffers for us (
implements delete), and 0.3.0 addsinto-string, which consumes a buffer and hands its allocation to the returnedStringwithout copying.One site:
web.carp:600-601, the chunked-response builder, whereto-stringis followed byStringBuf.delete sb. That becomes(StringBuf.into-string sb).No pin to bump here, since
StringBufarrives transitively throughhttp. The version this repo builds against follows from bumping thehttppin atweb.carp:37.Nothing breaks if this waits: manual
deleteis still an ownership transfer and does not double free.