diff options
| author | bors <bors@rust-lang.org> | 2021-03-15 22:36:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-03-15 22:36:57 +0000 |
| commit | 0929a24d728186cca33fa4c97350a7add7f4493f (patch) | |
| tree | 37587c9bd9b097e2dc96e7a5dc9ac174aa6898a5 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs | |
| parent | 9cd0f504a9219fa033d59e84f2f1ff92eefe8b6d (diff) | |
| parent | 2547edb84272aeb3d01e2b61640a9107c01b281b (diff) | |
| download | rust-0929a24d728186cca33fa4c97350a7add7f4493f.tar.gz rust-0929a24d728186cca33fa4c97350a7add7f4493f.zip | |
Auto merge of #6828 - mgacek8:issue_6758_enhance_wrong_self_convention, r=flip1995
wrong_self_convention: fix lint in case of `to_*_mut` method fixes #6758 changelog: wrong_self_convention: fix lint in case of `to_*_mut` method. When a method starts with `to_` and ends with `_mut`, clippy expects a `&mut self` parameter, otherwise `&self`. Any feedback is welcome. I was also thinking if shouldn't we treat `to_` the same way as `as_`. Namely to accept `self` taken: `&self` or `&mut self`.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions
