rust/clippy_lints/src/methods
Mateusz Gacek 2f0e9f7d3a or_fun_call: fix suggestion for or_insert(vec![])
Applies for `std::collections::hash_map::Entry` and `std::collections::btree_map::Entry`

Example:
Previously, for the following code:
`let _ = hash_map.entry("test".to_owned()).or_insert(vec![]);`
clippy would suggest to use:
`or_insert_with(vec![])`, which causes a compiler error (E0277).

Now clippy suggests:
`or_insert_with(Vec::new)`
2021-02-25 14:23:38 +01:00
..
bind_instead_of_map.rs Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup 2020-11-23 13:51:04 +01:00
bytes_nth.rs Update clippy_lints/src/methods/bytes_nth.rs 2021-02-10 15:49:07 +09:00
filter_map_identity.rs Use path_to_local_id 2021-02-08 09:50:13 -06:00
inefficient_to_string.rs Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup 2020-11-05 14:29:48 +01:00
inspect_for_each.rs Merge commit '95c0459217d1661edfa794c8bb122452b92fb485' into clippyup 2021-01-30 18:06:34 +01:00
manual_saturating_arithmetic.rs Rename HIR UnOp variants 2021-02-09 11:39:20 +03:00
mod.rs or_fun_call: fix suggestion for or_insert(vec![]) 2021-02-25 14:23:38 +01:00
option_map_unwrap_or.rs Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup 2020-11-05 14:29:48 +01:00
unnecessary_filter_map.rs Cleanup path to local checks 2021-02-05 10:24:32 -06:00
unnecessary_lazy_eval.rs Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup 2020-11-23 13:51:04 +01:00