]> git.lizzy.rs Git - rust.git/commit
Auto merge of #9571 - rust-lang:refactor-lit-ints, r=Jarcho
authorbors <bors@rust-lang.org>
Sun, 2 Oct 2022 13:11:21 +0000 (13:11 +0000)
committerbors <bors@rust-lang.org>
Sun, 2 Oct 2022 13:11:21 +0000 (13:11 +0000)
commitd6d5ecd625014ab797a1f5b04b7cee4d186f04b7
tree090c233310a12b675d34a797db82aa1a5945d12e
parent5d837b58f7b534ef78f2144b79ad71f21148df1b
parenteef5d477b59a3b68bca9c1f3a5334229fc0ad9b6
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