ThibsG
|
3ce6f0d022
|
Fix FP in wrong_self_convention lint
|
2021-04-11 13:29:08 +02:00 |
|
Mateusz Gacek
|
6966c78be7
|
wrong_self_convention: fix FP inside trait impl for to_* method
When the `to_*` method takes `&self` and it is a trait implementation,
we don't trigger the lint.
|
2021-03-29 23:46:03 -07:00 |
|
Mateusz Gacek
|
1f2d01641d
|
wrong_self_convention: Enhance lint message
|
2021-03-19 20:29:55 +01:00 |
|
Mateusz Gacek
|
ea15fb2177
|
wrong_self_convention: to_ respects Copy types
More details here:
https://rust-lang.github.io/api-guidelines/naming.html#ad-hoc-conversions-follow-as_-to_-into_-conventions-c-conv
|
2021-03-17 22:00:46 +01:00 |
|
Cameron Steffen
|
1c3a3e7dc6
|
Don't re-export clippy_utils::diagnostics::*
|
2021-03-15 20:06:01 -05:00 |
|
Mateusz Gacek
|
2547edb842
|
wrong_self_convention: fix lint in case of to_*_mut method
When a method starts with `to_` and ends with `_mut`, it should expect a `&mut self` parameter,
otherwise `&self`.
|
2021-03-11 23:54:50 -08:00 |
|
Takayuki Maeda
|
b5d809a660
|
move wrong_self_convention to its own module
|
2021-03-11 19:40:00 +09:00 |
|