about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorAndrei Listochkin <andrei.listochkin@ferrous-systems.com>2022-05-17 18:31:51 +0100
committerAndrei Listochkin <andrei.listochkin@ferrous-systems.com>2022-05-17 18:31:51 +0100
commit00a97272f2fe00c09dd954c21fffb4efebc208af (patch)
treeea1e1dc99826158202fa692aa1c43a9d1711c4ad /src/test/codegen/src-hash-algorithm
parente0df2c9beed4107f66d185452fdbf0aed9271b8d (diff)
downloadrust-00a97272f2fe00c09dd954c21fffb4efebc208af.tar.gz
rust-00a97272f2fe00c09dd954c21fffb4efebc208af.zip
automate braceless return substitution for long lines
Per [bjorn3][https://github.com/bjorn3] suggestion resolves cases where
an early return is moved to a separate line due to line width formatting.

This setting changes
```
if (a very long condition) return;
```
to
```
if (a very long
    condition) {
  return;
}
```
while keeping
```
if (short) return;
```
as is.

In pathological cases this may cause `npm run fix` not to fix formatting
in one go and may require running it twice.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions