dioxus
dioxus copied to clipboard
dx fmt crashes on if let
Problem
Steps To Reproduce
I have this in my rsx which seems to crash dx fmt:
if let DragState::Dragging(dragged_index) | DragState::Dragover(dragged_index, _) = drag_state() {
It prints this error:
thread '<unnamed>' panicked at /home/tim/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/prettyplease-0.2.32/src/item.rs:578:23:
not implemented: Item::Verbatim `fn main () { let DragState :: Dragging (dragged_index) | DragState :: Dragover (dragged_index , _) = drag_state () ; }`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Expected behavior
Screenshots
Environment:
- Dioxus version: 0.6.3
- Rust version: 1.87.0
- OS info: Arch Linux
- App platform: web
Questionnaire