Skip to content

Commit 293b1b8

Browse files
committed
Add ide-assist: generate_struct
Adds a stub struct with a definition matching the expression under the cursor. Example --- ```rust fn foo() { let bar = Bar$0 { x: 2, y: 3, force: true }; } ``` -> ```rust fn foo() { let bar = Bar { x: 2, y: 3, force: true }; } struct Bar { x: i32, y: i32, force: bool } ```
1 parent a91fb2b commit 293b1b8

File tree

4 files changed

+695
-0
lines changed

4 files changed

+695
-0
lines changed

0 commit comments

Comments
 (0)