Fixes for new clippy (#719)
This commit is contained in:
parent
3dfdba2ddc
commit
7d7601204f
@ -126,14 +126,14 @@ impl EventConfig {
|
||||
EventConfig::FromName { name_hash: a } => match other {
|
||||
#[cfg(not(feature = "std"))]
|
||||
EventConfig::AlwaysUnique => false,
|
||||
EventConfig::FromName { name_hash: b } => (a == b),
|
||||
EventConfig::FromName { name_hash: b } => a == b,
|
||||
#[cfg(feature = "std")]
|
||||
EventConfig::AlwaysUnique | EventConfig::BuildID { id: _ } => false,
|
||||
},
|
||||
#[cfg(feature = "std")]
|
||||
EventConfig::BuildID { id: a } => match other {
|
||||
EventConfig::AlwaysUnique | EventConfig::FromName { name_hash: _ } => false,
|
||||
EventConfig::BuildID { id: b } => (a == b),
|
||||
EventConfig::BuildID { id: b } => a == b,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -358,16 +358,15 @@ impl CmpLogRuntime {
|
||||
match op2 {
|
||||
CmplogOperandType::Imm(value) | CmplogOperandType::Cimm(value) => {
|
||||
writer.put_ldr_reg_u64(Aarch64Register::X1, *value);
|
||||
match special_case {
|
||||
Some(inst) => match inst {
|
||||
if let Some(inst) = special_case {
|
||||
match inst {
|
||||
SpecialCmpLogCase::Tbz => {
|
||||
writer.put_bytes(self.ops_handle_tbz_masking());
|
||||
}
|
||||
SpecialCmpLogCase::Tbnz => {
|
||||
writer.put_bytes(self.ops_handle_tbnz_masking());
|
||||
}
|
||||
},
|
||||
None => (),
|
||||
}
|
||||
}
|
||||
}
|
||||
CmplogOperandType::Regid(reg) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user