about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-10 14:11:27 +0000
committerbors <bors@rust-lang.org>2020-09-10 14:11:27 +0000
commit55efa966594cd375b6bace6c0b4481108806d8a2 (patch)
treeb7f7159f7ad13452213cc1d86a1c788f52336c2b /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent0e9769e78794cfc07f9774ffffd05e962ee3874f (diff)
parentb220ddf146f4c11011b2e1b7f37ecb8e5485555b (diff)
downloadrust-55efa966594cd375b6bace6c0b4481108806d8a2.tar.gz
rust-55efa966594cd375b6bace6c0b4481108806d8a2.zip
Auto merge of #5931 - montrivo:unit-arg, r=flip1995
improve the suggestion of the lint `unit-arg`

Fixes #5823
Fixes #6015

Changes
```
help: move the expression in front of the call...
  |
3 |     g();
  |
help: ...and use a unit literal instead
  |
3 |     o.map_or((), |i| f(i))
  |
```
into
```
help: move the expression in front of the call and replace it with the unit literal `()`
  |
3 |     g();
  |     o.map_or((), |i| f(i))
  |
```
changelog: improve the suggestion of the lint `unit-arg`
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions