blob: 183ef048f61ae36aa389d1d0345cde940fe788e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
tree 9b07668a01107a6e080752f93d7e0ea4c30c8a1d
parent 4566414789310acb2617543f4b50beab4bb48e06
parent 24f816c4815b02327c31574685bf80e78d2b9743
author bors[bot] <26634292+bors[bot]@users.noreply.github.com> 1637524867 +0000
committer GitHub <noreply@github.com> 1637524867 +0000
gpgsig -----BEGIN PGP SIGNATURE-----
wsBcBAABCAAQBQJhmqWDCRBK7hj4Ov3rIwAAX9QIAKVap20BJVmIMcV4kCqYK1Rn
HMLdqnDe7duM5Nw5Jt1oUeL84AKD9FUqR0BkcVo7Bj/S3dp4H2tAf2FVhEvt/hwD
12fdGJ7OJWseE/LZdb5TM62/VYaR6u9x8h4ZycsnSEd2+wa42CYtil+4oUO7wsuM
l6guVTOLsPm3rKapQ4jDZITV+rrJVfTSqIggE/LahZvlni8BPM5zL4CvjmJYJkLb
HitVCh9A+eRyBla/Lfn777DbFV6cyZH8L8TTsf2xduuhg5yEFdHKgMUsEamiaY7p
aHqAXxy+kC9z4Y6KHPXu3S+RZBXW6OXNM1U99fR5wNe74A1VwFByu2WA4dP2rpU=
=MkJw
-----END PGP SIGNATURE-----
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:

after:

Co-authored-by: Alex Veber <alexveber@gmail.com>
|