Files
oak-gpui/crates
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-29 18:06:45 -07:00
2024-07-15 17:04:15 -06:00
2024-05-29 18:06:45 -07:00
2024-04-30 23:31:59 -06:00
2024-06-12 23:22:52 +03:00
2024-06-12 23:22:52 +03:00
2024-06-18 12:16:54 -07:00
2024-07-16 09:06:38 -06:00
2024-07-16 00:08:56 -06:00
2024-03-11 10:45:57 +01:00
2024-07-10 21:14:34 -06:00
2024-07-15 17:04:15 -06:00
2024-07-15 17:04:15 -06:00
2024-07-15 17:04:15 -06:00
2024-05-23 15:50:59 +02:00
2024-06-21 16:32:32 -07:00
2024-07-15 17:04:15 -06:00
2024-04-15 14:21:52 +02:00
2024-07-15 17:04:15 -06:00
2024-07-16 00:08:56 -06:00