Update endian_bytes.rs
This commit is contained in:
parent
a6c36556c8
commit
b1a21ae347
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user