Remove unneeded encoder reset

We reset the encoder if we are reusing one, and we generate a fresh new
one otherwise.
This commit is contained in:
Shon Feder 2025-06-23 13:55:26 -04:00
parent 841d223ed2
commit d3235a1864
No known key found for this signature in database

View file

@ -16,7 +16,6 @@ module Converter = struct
in
let x = ctor resource in
let@ _sc = Self_trace.with_ ~kind:Span.Span_kind_internal "encode-proto" in
Pbrt.Encoder.reset encoder;
enc x encoder;
Pbrt.Encoder.to_string encoder