Krishna Veera Reddy
|
c09e79e226
|
Lint within internal macros without a suggestion
|
2019-12-31 09:22:35 -08:00 |
|
Krishna Veera Reddy
|
26812f733d
|
Prevent mem_replace_with_default lint within macros
Also added test cases for internal and external macros.
|
2019-12-31 09:22:34 -08:00 |
|
Krishna Veera Reddy
|
2a75241c1a
|
Add test cases for replace with Default::default()
|
2019-12-31 09:22:34 -08:00 |
|
Krishna Veera Reddy
|
8db319f957
|
Use mem::take instead of mem::replace when applicable
`std::mem::take` can be used to replace a value of type `T`
with `T::default()` instead of `std::mem::replace`.
|
2019-12-31 09:22:34 -08:00 |
|
Wilco Kusee
|
95f2a9dbfc
|
Add run-rustfix to mem_replace test
|
2019-01-13 13:55:26 +01:00 |
|
flip1995
|
d2dbd0b8a5
|
Update *.stderr files
|
2018-12-28 12:41:12 +01:00 |
|
Matthias Krüger
|
7bcc2cd9c8
|
update test stderr
|
2018-12-10 08:22:07 +01:00 |
|
Manish Goregaokar
|
e9c025ea70
|
Add license header to Rust files
|
2018-10-06 09:43:08 -07:00 |
|
Jay Kickliter
|
2f53aaa5bd
|
mem_replace: match on path.
|
2018-09-19 14:41:22 -07:00 |
|
Jay Kickliter
|
598df08d88
|
Add lint for mem::replace(.., None) .
Suggest `Option::take()` as an alternative.
|
2018-09-19 14:38:34 -07:00 |
|