mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
Bufgix
This commit is contained in:
parent
65a3cc21ed
commit
41ae7ed79f
1 changed files with 3 additions and 3 deletions
|
@ -170,7 +170,7 @@ https://www.tedinski.com/2018/02/06/system-boundaries.html
|
|||
|
||||
We separate import groups with blank lines
|
||||
|
||||
```
|
||||
```rust
|
||||
mod x;
|
||||
mod y;
|
||||
|
||||
|
@ -195,7 +195,7 @@ Put `struct`s and `enum`s first, functions and impls last.
|
|||
|
||||
Do
|
||||
|
||||
```
|
||||
```rust
|
||||
// Good
|
||||
struct Foo {
|
||||
bars: Vec<Bar>
|
||||
|
@ -206,7 +206,7 @@ struct Bar;
|
|||
|
||||
rather than
|
||||
|
||||
```
|
||||
```rust
|
||||
// Not as good
|
||||
struct Bar;
|
||||
|
||||
|
|
Loading…
Reference in a new issue