mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 05:38:46 +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
|
We separate import groups with blank lines
|
||||||
|
|
||||||
```
|
```rust
|
||||||
mod x;
|
mod x;
|
||||||
mod y;
|
mod y;
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ Put `struct`s and `enum`s first, functions and impls last.
|
||||||
|
|
||||||
Do
|
Do
|
||||||
|
|
||||||
```
|
```rust
|
||||||
// Good
|
// Good
|
||||||
struct Foo {
|
struct Foo {
|
||||||
bars: Vec<Bar>
|
bars: Vec<Bar>
|
||||||
|
@ -206,7 +206,7 @@ struct Bar;
|
||||||
|
|
||||||
rather than
|
rather than
|
||||||
|
|
||||||
```
|
```rust
|
||||||
// Not as good
|
// Not as good
|
||||||
struct Bar;
|
struct Bar;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue