rust/clippy_lints/src/methods
bors 029777f029 Auto merge of #6896 - TaKO8Ki:refactor-lints-in-methods-module, r=phansch
Refactor lints in methods module

This PR refactors methods lints other than the lints I refactored in https://github.com/rust-lang/rust-clippy/pull/6826 and moves some functions to methods/utils.rs.
Basically, I follow the instruction described in #6680.

**For ease of review, I refactored step by step, keeping each commit small.**

closes https://github.com/rust-lang/rust-clippy/issues/6886
cc: `@phansch,` `@flip1995,` `@Y-Nak`

changelog: Move lints in methods module to their own modules and some function to methods/utils.rs.
2021-03-22 19:36:22 +00:00
..
bind_instead_of_map.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
bytes_nth.rs Don't re-export clippy_utils::diagnostics::* 2021-03-15 20:06:01 -05:00
chars_cmp_with_unwrap.rs extract conditions for from_iter_instead_of_collect into its own module 2021-03-18 00:58:35 +09:00
chars_cmp.rs extract conditions for from_iter_instead_of_collect into its own module 2021-03-18 00:58:35 +09:00
chars_last_cmp_with_unwrap.rs move chars_last_cmp_with_unwrap to its own module 2021-03-18 00:59:45 +09:00
chars_last_cmp.rs move chars_cmp_with_unwrap, chars_last_cmp and chars_next_cmp_with_unwrap to their own modules 2021-03-18 00:49:48 +09:00
chars_next_cmp_with_unwrap.rs move chars_cmp_with_unwrap, chars_last_cmp and chars_next_cmp_with_unwrap to their own modules 2021-03-18 00:49:48 +09:00
chars_next_cmp.rs move chars_cmp and chars_next_cmp to its own modules 2021-03-18 00:49:03 +09:00
clone_on_copy.rs extract conditions into modules 2021-03-18 00:51:49 +09:00
clone_on_ref_ptr.rs extract conditions into modules 2021-03-18 00:51:49 +09:00
expect_fun_call.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
expect_used.rs Don't re-export clippy_utils::diagnostics::* 2021-03-15 20:06:01 -05:00
filetype_is_file.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
filter_flat_map.rs remove unused arguments 2021-03-18 00:51:18 +09:00
filter_map_flat_map.rs remove unused arguments 2021-03-18 00:51:18 +09:00
filter_map_identity.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
filter_map_map.rs remove unused arguments 2021-03-18 00:51:18 +09:00
filter_map_next.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
filter_map.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
filter_next.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
flat_map_identity.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
from_iter_instead_of_collect.rs extract conditions for from_iter_instead_of_collect into its own module 2021-03-18 00:58:35 +09:00
get_unwrap.rs use derefs_to_slice in methods/utils.rs 2021-03-18 00:51:16 +09:00
implicit_clone.rs Don't re-export clippy_utils::diagnostics::* 2021-03-15 20:06:01 -05:00
inefficient_to_string.rs extract conditions into modules 2021-03-18 00:51:49 +09:00
inspect_for_each.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
into_iter_on_ref.rs remove the use of paths 2021-03-18 01:06:24 +09:00
iter_cloned_collect.rs use derefs_to_slice in methods/utils.rs 2021-03-18 00:51:16 +09:00
iter_count.rs use derefs_to_slice in methods/utils.rs 2021-03-18 00:51:16 +09:00
iter_next_slice.rs replace crate::methods::utils with super::utils 2021-03-18 01:23:37 +09:00
iter_nth_zero.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
iter_nth.rs replace crate::methods::utils with super::utils 2021-03-18 01:23:37 +09:00
iter_skip_next.rs remove a needless variable 2021-03-18 00:51:18 +09:00
iterator_step_by_zero.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
manual_saturating_arithmetic.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
map_collect_result_unit.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
map_flatten.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
map_unwrap_or.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
mod.rs Auto merge of #6896 - TaKO8Ki:refactor-lints-in-methods-module, r=phansch 2021-03-22 19:36:22 +00:00
ok_expect.rs Don't re-export clippy_utils::diagnostics::* 2021-03-15 20:06:01 -05:00
option_as_ref_deref.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
option_map_or_none.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
option_map_unwrap_or.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
or_fun_call.rs Auto merge of #6928 - mgacek8:issue6675_or_fun_call_unsafe_blocks, r=phansch 2021-03-18 15:55:06 +00:00
search_is_some.rs search_is_some: check also when search is none 2021-03-21 21:23:36 +01:00
single_char_add_str.rs extract conditions for from_iter_instead_of_collect into its own module 2021-03-18 00:58:35 +09:00
single_char_insert_string.rs replace crate::methods::utils with super::utils 2021-03-18 01:23:37 +09:00
single_char_pattern.rs replace crate::methods::utils with super::utils 2021-03-18 01:23:37 +09:00
single_char_push_string.rs replace crate::methods::utils with super::utils 2021-03-18 01:23:37 +09:00
skip_while_next.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
string_extend_chars.rs refactor string_extend_chars: return when obj type is not string 2021-03-18 00:49:50 +09:00
suspicious_map.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
uninit_assumed_init.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
unnecessary_filter_map.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
unnecessary_fold.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
unnecessary_lazy_eval.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
unwrap_used.rs Don't re-export clippy_utils::diagnostics::* 2021-03-15 20:06:01 -05:00
useless_asref.rs Don't re-export clippy_utils::* 2021-03-17 09:13:52 -05:00
utils.rs move get_hint_if_single_char_arg to methods/utils.rs 2021-03-18 00:59:45 +09:00
wrong_self_convention.rs wrong_self_convention: Enhance lint message 2021-03-19 20:29:55 +01:00
zst_offset.rs Don't re-export clippy_utils::diagnostics::* 2021-03-15 20:06:01 -05:00