Closed xizheyin closed 1 year ago
Improvements to the docs are welcome, but this is just an allocation error, as the message indicates. There is no static limit that makes sense here. If you're going to try to specify a capacity that is more than available memory, then this is just what happens. It fails for the same reason Vec::with_capacity
can fail.
What version of the
csv
crate are you using?Briefly describe the question, bug or feature request.
Hi,
csv::ByteRecord::with_capacity
may panic atlibrary/alloc/src/raw_vec.rs:518:5
, or abort without error message. Perhaps it is necessary to improve the documentation to limit the size of the parameters.Include a complete program demonstrating a problem.
What is the observed behavior of the code above?