Files
oak-gpui/crates/editor/src
Piotr Osiewicz 09c497f744 editor: Ensure allocation reuse (#14577)
In #14567 I claimed that the underlying allocation is reused. And it
was. At the time I've submitted a PR I was using `.filter_map(|x| x)`,
which got flagged by clippy as something that could be simplified to
`.flatten()` - that however broke the allocation reuse promise.

Thus, this PR goes back to using `filter_map` and additionally in debug
builds it performs checks for allocation reuse. With .flatten in place,
a bunch of unit test fail on that branch, so the checks do work.



Release Notes:

- N/A
2024-07-16 18:29:45 +02:00
..
2024-05-10 15:50:20 -06:00
2024-01-03 10:58:57 -08:00
2024-05-26 16:30:09 -07:00
wip
2023-01-25 11:32:19 -08:00