4e72700e38
11573: refactorings and FIXME fixes in text edit r=lnicola a=HansAuger This is mainly me learning some rust, and only anecdotally about addressing some `fixme`s. Feel free to nope :) There is a follow up PR in the pipeline which tackles the other two `fixme`s but it's a bit more invasive. So I wanted to get this out of the way Co-authored-by: Moritz Vetter <mv@3yourmind.com>