[eureka@nixos]
[eureka@nixos]
There's a fairly substantial amount of logical code that's stored as comments in this repo. There seems to be a mixture of code that may get used later, and code...
This removes newlines from imports so they can be properly organized. Closes #2501
@mitchmindtree : >I have a slight hesitation about exposing the formatter's Shape state as done in this PR as I can imagine it might lead to >cases where a Format...
Currently all newlines aren't handled, so something like: ```rust let foo = "foo"; let bar = "bar"; let baz = "baz"; ``` will format to: ```rust let foo = "foo";...
>Currently we are supporting this kind of comments as long as it is parsed. > >Example > >// This can be parsed and supported >```rust >let number: /* this number...
```rust let mut value_pairs_iter = value_pairs.iter().enumerate().peekable(); for (var_index, (type_field, comma_token)) in value_pairs_iter.clone() {} ``` should be: ```rust let mut value_pairs_iter = value_pairs.iter().enumerate().peekable(); while let Some((var_index, (type_field, comma_token))) = value_pairs_iter.next() {}...
- [ ] `parens` - [ ] `block` - [x] `array` #2593 @eureka-cpu - [ ] `asm` - [ ] `return` - [x] conditionals - [x] if/else #2597 & #2564...
Currently only `structs` and `tuples` are handled for multiline formatting. That still leaves: - [x] arrays (mostly copy & paste from tuple) this will also close #726 #2593 - [x]...