mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-24 05:33:41 +00:00
Update endian_bytes.rs
This commit is contained in:
parent
a6c36556c8
commit
b1a21ae347
@ -95,7 +95,7 @@ impl LintKind {
|
||||
}
|
||||
|
||||
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