[eureka@nixos]
[eureka@nixos]
Tracking for the new formatter: >The design of `rustfmt` is to leave code functionality in tact, but also do more than just move white space. For instance, >long generic parameters...
It may be a good idea to start moving away from unit tests and start growing a file full of code in need of format that would need to pass...
This should be the last piece of the puzzle for ensuring that comments before module kind will always work. As apposed to the newline map where we can just trim...
This: ```rust /// Allocates zeroed memory on the heap /// /// In FuelVM, the heap begins at `VM_MAX_RAM - 1` and grows downward. /// Heap pointer `$hp` will always point...
Opening for visibility Closes #2790
Comments should not have preceding newlines, nor extra ending newlines. All extra newlines should be handled by the newline handler instead. Going about it this way, we ensure that there...
```rust script; use std::assert::assert; fn adder(a: u64, b: u64, c: u64) -> (u64, u64) { let empty_tuple = (0u64, 0u64); asm(output: empty_tuple, r1: a, r2: b, r3: c, r4, r5)...
something like: ```rust if self == PrimaryColor::Blue { Rgb { red: 0, blue: 255, green: 0, } } // TODO remove this else when exhaustive ifs are checked for else...
```rust let (Point{x, y}, Point{z, a}) = ... ``` should be: ```rust let (Point { x, y }, Point { z, a }) = ... ``` and if multiline: ```rust...
After some discussion with @mohammadfawaz & others, this PR will rely on a refactor of how we handle `Delimiter`s. One of Mohammad's comments below references how Rust handles implicit return...