We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6c3655 commit b1a21aeCopy full SHA for b1a21ae
clippy_lints/src/endian_bytes.rs
@@ -95,7 +95,7 @@ impl LintKind {
95
}
96
97
fn as_name(&self, prefix: &Prefix) -> &str {
98
- let index = if matches!(prefix, Prefix::From) { 0 } else { 1 };
+ let index = usize::from(matches!(prefix, Prefix::To));
99
100
match self {
101
LintKind::Host => HOST_NAMES[index],
0 commit comments