rust/clippy_lints/src/methods
bors d6d5ecd625 Auto merge of #9571 - rust-lang:refactor-lit-ints, r=Jarcho
use `is_integer_literal` more

I noticed that we have the `is_integer_literal` function in our `clippy_utils`, yet almost everywhere people still match int literal expressions manually. So I searched for instances to replace and shorten the code a bit.

---

changelog: none
2022-10-02 13:11:21 +00:00
..
bind_instead_of_map.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
bytecount.rs
bytes_count_to_len.rs
bytes_nth.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
case_sensitive_file_extension_comparisons.rs
chars_cmp_with_unwrap.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
chars_cmp.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
chars_last_cmp_with_unwrap.rs
chars_last_cmp.rs
chars_next_cmp_with_unwrap.rs
chars_next_cmp.rs
clone_on_copy.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
clone_on_ref_ptr.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
cloned_instead_of_copied.rs
collapsible_str_replace.rs
err_expect.rs Merge commit '7248d06384c6a90de58c04c1f46be88821278d8b' into sync-from-clippy 2022-09-21 13:13:27 -04:00
expect_fun_call.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
expect_used.rs
extend_with_drain.rs
filetype_is_file.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
filter_map_identity.rs
filter_map_next.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
filter_map.rs Merge commit 'b52fb5234cd7c11ecfae51897a6f7fa52e8777fc' into clippyup 2022-09-09 13:36:26 +02:00
filter_next.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
flat_map_identity.rs
flat_map_option.rs
from_iter_instead_of_collect.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
get_first.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
get_last_with_len.rs use is_integer_literal more 2022-10-01 17:55:22 +02:00
get_unwrap.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
implicit_clone.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
inefficient_to_string.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
inspect_for_each.rs
into_iter_on_ref.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
is_digit_ascii_radix.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
iter_cloned_collect.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
iter_count.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
iter_kv_map.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
iter_next_slice.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
iter_nth_zero.rs
iter_nth.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
iter_on_single_or_empty_collections.rs
iter_overeager_cloned.rs
iter_skip_next.rs
iter_with_drain.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
iterator_step_by_zero.rs
manual_ok_or.rs lint nested patterns and slice patterns in needless_borrowed_reference 2022-10-01 22:31:10 +00:00
manual_saturating_arithmetic.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
manual_str_repeat.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
map_clone.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
map_collect_result_unit.rs
map_err_ignore.rs
map_flatten.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
map_identity.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
map_unwrap_or.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
mod.rs Merge remote-tracking branch 'upstream/master' into rustup 2022-09-28 14:27:32 +02:00
mut_mutex_lock.rs Merge commit 'b52fb5234cd7c11ecfae51897a6f7fa52e8777fc' into clippyup 2022-09-09 13:36:26 +02:00
needless_option_as_deref.rs
needless_option_take.rs
no_effect_replace.rs
obfuscated_if_else.rs
ok_expect.rs Merge commit '7248d06384c6a90de58c04c1f46be88821278d8b' into sync-from-clippy 2022-09-21 13:13:27 -04:00
open_options.rs Merge commit 'b52fb5234cd7c11ecfae51897a6f7fa52e8777fc' into clippyup 2022-09-09 13:36:26 +02:00
option_as_ref_deref.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
option_map_or_none.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
option_map_unwrap_or.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
or_fun_call.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
or_then_unwrap.rs
path_buf_push_overwrite.rs
range_zip_with_len.rs
repeat_once.rs
search_is_some.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
single_char_add_str.rs
single_char_insert_string.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
single_char_pattern.rs
single_char_push_string.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
skip_while_next.rs
stable_sort_primitive.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
str_splitn.rs
string_extend_chars.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
suspicious_map.rs Merge commit 'b52fb5234cd7c11ecfae51897a6f7fa52e8777fc' into clippyup 2022-09-09 13:36:26 +02:00
suspicious_splitn.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
suspicious_to_owned.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
uninit_assumed_init.rs
unit_hash.rs
unnecessary_filter_map.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
unnecessary_fold.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
unnecessary_iter_cloned.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
unnecessary_join.rs
unnecessary_lazy_eval.rs [unnecessary_lazy_eval] Do not lint in external macros 2022-09-29 13:48:50 +02:00
unnecessary_sort_by.rs Merge commit 'b52fb5234cd7c11ecfae51897a6f7fa52e8777fc' into clippyup 2022-09-09 13:36:26 +02:00
unnecessary_to_owned.rs Merge remote-tracking branch 'upstream/master' into rustup 2022-09-28 14:27:32 +02:00
unwrap_or_else_default.rs Merge commit 'b52fb5234cd7c11ecfae51897a6f7fa52e8777fc' into clippyup 2022-09-09 13:36:26 +02:00
unwrap_used.rs
useless_asref.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
utils.rs
vec_resize_to_zero.rs
verbose_file_reads.rs
wrong_self_convention.rs Apply uninlined_format-args to clippy_lints 2022-09-23 13:42:59 -04:00
zst_offset.rs