style-guide: Remove trailing space
This commit is contained in:
parent
9a9e8273e4
commit
283c0e43ca
3 changed files with 6 additions and 6 deletions
|
|
@ -294,7 +294,7 @@ Use parentheses liberally, do not necessarily elide them due to precedence.
|
|||
Tools should not automatically insert or remove parentheses. Do not use spaces
|
||||
to indicate precedence.
|
||||
|
||||
If line-breaking, put the operator on a new line and block indent. Put each
|
||||
If line-breaking, put the operator on a new line and block indent. Put each
|
||||
sub-expression on its own line. E.g.,
|
||||
|
||||
```rust
|
||||
|
|
@ -595,7 +595,7 @@ let x = match foo.bar.baz() {
|
|||
};
|
||||
```
|
||||
|
||||
Use a trailing comma for a match arm if and only if not using a block.
|
||||
Use a trailing comma for a match arm if and only if not using a block.
|
||||
|
||||
Never start a match arm pattern with `|`, e.g.,
|
||||
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ pulled down to its own line and indented again.
|
|||
```rust
|
||||
struct Foo {
|
||||
a: A,
|
||||
long_name:
|
||||
long_name:
|
||||
LongType,
|
||||
}
|
||||
```
|
||||
|
|
@ -129,7 +129,7 @@ The same guidelines are used for untagged union declarations.
|
|||
union Foo {
|
||||
a: A,
|
||||
b: B,
|
||||
long_name:
|
||||
long_name:
|
||||
LongType,
|
||||
}
|
||||
```
|
||||
|
|
|
|||
|
|
@ -79,14 +79,14 @@ let foo:
|
|||
ALongType =
|
||||
{
|
||||
an_expression();
|
||||
...
|
||||
...
|
||||
};
|
||||
|
||||
let Foo {
|
||||
f: abcd,
|
||||
g: qwer,
|
||||
}: Foo<Bar> = Foo {
|
||||
f: blimblimblim,
|
||||
f: blimblimblim,
|
||||
g: blamblamblam,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue