about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorAndrei Listochkin <andrei.listochkin@ferrous-systems.com>2022-05-11 18:19:45 +0100
committerAndrei Listochkin <andrei.listochkin@ferrous-systems.com>2022-05-17 18:12:49 +0100
commit4fcdb0fea02d7d64450a6a48d4a9ac1b546b66f9 (patch)
tree255daad38b8d0b3a5b1c91445f2eeddfc35cd538 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent7e95c14ea730c6b06f5760c8c92e69b9a6def828 (diff)
downloadrust-4fcdb0fea02d7d64450a6a48d4a9ac1b546b66f9.tar.gz
rust-4fcdb0fea02d7d64450a6a48d4a9ac1b546b66f9.zip
prettier config
[Prettier][1] is an up-to date code formatter for JavaScript ecosystem.

For settings we rely on [EditorConfig][2] for things like tab style and
size (with added bonus that the code editor with an EditorConfig plugin
does some automated code formatting on file save for you). Unfortunately,
Prettier's Glob handling isn't great:
 1. `*.{ts,js,json}` has no effect
 2. Similarly, in a list of globs `*.ts,*.js,*.json` only the first glob
has an effect, the rest are ignored.
That's why the file looks the way it does.

The only other setting we change is line width. [Lukas][3] suggested we
use 100 instead of 80, because that's what Rustfmt is using.

[1]: https://prettier.io
[2]: https://editorconfig.org
[3]: https://github.com/Veykril
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions