![]() We reserve bufmaxlen bytes in the string, but then proceed to push up to bufmaxlen chars. Therefore it is possible that the string will need to reallocate. A different solution would be to reserve 4*bufmaxlen bytes. Removing the assert is probably ok, because the attempt to pre-allocate is just a performance optimization. |
||
---|---|---|
.. | ||
input | ||
char_traits.rs | ||
debug.rs | ||
input.rs | ||
lib.rs | ||
parser.rs | ||
scanner.rs |