Update to Rust 2024 and fix compiler errors
This commit is contained in:
parent
81ca3d2a22
commit
67e489e382
6 changed files with 13 additions and 13 deletions
|
|
@ -1252,7 +1252,7 @@ impl PartialEq<Code> for Physical {
|
|||
#[inline]
|
||||
fn eq(&self, rhs: &Code) -> bool {
|
||||
match self {
|
||||
Physical::Code(ref code) => code == rhs,
|
||||
Physical::Code(code) => code == rhs,
|
||||
Physical::Unidentified(_) => false,
|
||||
}
|
||||
}
|
||||
|
|
@ -1269,7 +1269,7 @@ impl PartialEq<NativeCode> for Physical {
|
|||
#[inline]
|
||||
fn eq(&self, rhs: &NativeCode) -> bool {
|
||||
match self {
|
||||
Physical::Unidentified(ref code) => code == rhs,
|
||||
Physical::Unidentified(code) => code == rhs,
|
||||
Physical::Code(_) => false,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue