Commit 8aa474e
authored
clippy: Disallow lock and instant types from
We use `parking_lot` locks throughout our code. This change disallows the
introduction of std::sync's locks.
This change also enforces the use of `tokio::time::Instant`, which
allows for a mockable time source in tests.
Signed-off-by: Oliver Gould <ver@buoyant.io>std (#1458)1 parent bffdb1a commit 8aa474e
File tree
89 files changed
+514
-210
lines changed- hyper-balance/src
- linkerd2-proxy/src
- linkerd
- addr/src
- app
- admin/src
- core/src
- gateway/src
- inbound/src
- integration
- src
- tests
- outbound/src
- src
- test
- src
- cache/src
- conditional/src
- detect/src
- dns
- name/src
- src
- duplex/src
- errno/src
- error-respond/src
- error/src
- exp-backoff/src
- http-access-log
- src
- http-box/src
- http-classify/src
- http-metrics
- src
- requests
- http-retry/src
- identity/src
- io/src
- meshtls
- boring/src
- rustls/src
- src
- tests
- metrics
- src
- opencensus/src
- proxy
- api-resolve/src
- core/src
- discover/src
- dns-resolve/src
- http/src
- identity-client/src
- resolve/src
- tap/src
- grpc
- tcp/src
- transport/src
- reconnect/src
- retry/src
- server-policy/src
- service-profiles/src
- signal/src
- stack
- metrics/src
- src
- tracing/src
- system/src
- tls
- src
- test-util/src
- tonic-watch/src
- trace-context/src
- tracing/src
- transport-header/src
- transport-metrics
- src
- opencensus-proto/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
89 files changed
+514
-210
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
13 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
917 | 917 | | |
918 | 918 | | |
919 | 919 | | |
| 920 | + | |
920 | 921 | | |
921 | 922 | | |
922 | 923 | | |
| |||
968 | 969 | | |
969 | 970 | | |
970 | 971 | | |
| 972 | + | |
971 | 973 | | |
972 | 974 | | |
973 | 975 | | |
| |||
1090 | 1092 | | |
1091 | 1093 | | |
1092 | 1094 | | |
| 1095 | + | |
1093 | 1096 | | |
1094 | 1097 | | |
1095 | 1098 | | |
| |||
1131 | 1134 | | |
1132 | 1135 | | |
1133 | 1136 | | |
| 1137 | + | |
1134 | 1138 | | |
1135 | 1139 | | |
1136 | 1140 | | |
| |||
1529 | 1533 | | |
1530 | 1534 | | |
1531 | 1535 | | |
| 1536 | + | |
1532 | 1537 | | |
1533 | 1538 | | |
1534 | 1539 | | |
| |||
1669 | 1674 | | |
1670 | 1675 | | |
1671 | 1676 | | |
| 1677 | + | |
1672 | 1678 | | |
1673 | 1679 | | |
1674 | 1680 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | 8 | | |
4 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | 8 | | |
4 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | 8 | | |
4 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | 8 | | |
4 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
| |||
315 | 313 | | |
316 | 314 | | |
317 | 315 | | |
318 | | - | |
319 | 316 | | |
320 | 317 | | |
321 | 318 | | |
| |||
0 commit comments