autodefault
autodefault copied to clipboard
Autodefault automatically makes your struct literals fill themselves with `..default()`
Results
2
autodefault issues
Sort by
recently updated
recently updated
newest added
```rust #[derive(Default)] struct Foo { x: i32, y: i32, z: i32, } #[autodefault::autodefault] fn foos() -> Vec { let f1 = Foo { x: 1 }; vec![Foo { y: 1...
Without autodefault: ![image](https://user-images.githubusercontent.com/47243761/202869509-644179fa-6b3c-4c44-896b-83fb51fecc97.png) With autodefault ![image](https://user-images.githubusercontent.com/47243761/202869575-2b20b538-fda9-4ed0-ae24-ac7da04356b7.png) When a function is annotated, the lsp fails to suggest fields.