Update endian_bytes.rs

This commit is contained in:
Centri3 2023-06-02 14:38:03 -05:00
parent a6c36556c8
commit b1a21ae347

View File

@ -95,7 +95,7 @@ fn as_lint(&self) -> &'static Lint {
}
fn as_name(&self, prefix: &Prefix) -> &str {
let index = if matches!(prefix, Prefix::From) { 0 } else { 1 };
let index = usize::from(matches!(prefix, Prefix::To));
match self {
LintKind::Host => HOST_NAMES[index],