Interaction between IfmtInput::push_* and rsx-autoformat #3503
Labels
autoformatting
Related to the autofmt crate
bug
Something isn't working
rsx
Related to rsx or the dioxus-rsx crate
Milestone
Problem
IfmtInput has methods like
push_raw_str
to modify the segments, but those methods do not effect the source. Since the autoformatter only uses the source it was originally parsed from formatting a ifmt segment reverts the segments that were pushed. This behavior caused this bug in the docsite codegen. The patch works around the issue by not merging adjacent text segmentsSteps To Reproduce
Run this code and observe it panics:
Expected behavior
You should not be able to edit IfmtInput internals or modifying IfmtInput should work with the autoformatter
Environment:
master
nightly
The text was updated successfully, but these errors were encountered: