Fix miscellaneous Clippy lints

This commit is contained in:
Aramis Razzaghipour
2021-10-03 23:45:08 +11:00
parent 55c0b86cde
commit eff195852d
21 changed files with 40 additions and 51 deletions

View File

@@ -688,7 +688,7 @@ impl Radix {
pub const ALL: &'static [Radix] =
&[Radix::Binary, Radix::Octal, Radix::Decimal, Radix::Hexadecimal];
const fn prefix_len(&self) -> usize {
const fn prefix_len(self) -> usize {
match self {
Self::Decimal => 0,
_ => 2,