dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

dx fmt crashes on if let

Open timakro opened this issue 4 months ago • 1 comments

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

timakro avatar Jun 12 '25 07:06 timakro