about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-11-21 20:01:07 +0000
committerGitHub <noreply@github.com>2021-11-21 20:01:07 +0000
commit183ef048f61ae36aa389d1d0345cde940fe788e9 (patch)
tree9b07668a01107a6e080752f93d7e0ea4c30c8a1d /src/test/codegen/src-hash-algorithm
parent4566414789310acb2617543f4b50beab4bb48e06 (diff)
parent24f816c4815b02327c31574685bf80e78d2b9743 (diff)
downloadrust-183ef048f61ae36aa389d1d0345cde940fe788e9.tar.gz
rust-183ef048f61ae36aa389d1d0345cde940fe788e9.zip
Merge #10823
10823: fix: better `Fn` traits formatting r=jonas-schievink a=veber-alex

This makes it so formatting `Fn` traits properly handles:

1. An `Fn` trait with only a single argument -> removes the trailing comma.
2. An `Fn` trait which returns nothing (an empty tuple) -> don't show `-> ()` as the return type.

before:
![before](https://user-images.githubusercontent.com/29788806/142745038-44ac68ce-de42-4396-a809-ffdb883be699.png)

after:
![after](https://user-images.githubusercontent.com/29788806/142745040-485feaa2-cc21-4a05-9576-5410ea355029.png)




Co-authored-by: Alex Veber <alexveber@gmail.com>
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions