Skip to content

Commit

Permalink
upgrade rust to 1.77.0 nightly - 2024-02-03
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreat committed Dec 13, 2024
1 parent b9b350e commit 31088b8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions connection/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ impl<C: Connection> Ord for SyncConnection<C> {
}
}

// this check maybe be buggy and fixed in later versions:
// https://github.com/rust-lang/rust-clippy/issues/12154
#[allow(clippy::unconditional_recursion)]
impl<C: Connection> PartialEq for SyncConnection<C> {
fn eq(&self, other: &Self) -> bool {
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-02-01"
channel = "nightly-2024-02-03"
2 changes: 2 additions & 0 deletions util/repr-bytes/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,8 @@ macro_rules! derive_core_cmp_from_as_ref {
}
}

// this check maybe be buggy and fixed in later versions:
// https://github.com/rust-lang/rust-clippy/issues/12154
#[allow(clippy::unconditional_recursion)]
impl PartialEq for $mytype {
fn eq(&self, other: &Self) -> bool {
Expand Down
6 changes: 4 additions & 2 deletions util/u64-ratio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ impl U64Ratio {
}
}

// #[allow(clippy::unconditional_recursion)]
// this check maybe be buggy and fixed in later versions:
// https://github.com/rust-lang/rust-clippy/issues/12154
#[allow(clippy::unconditional_recursion)]
impl PartialEq for U64Ratio {
#[inline]
fn eq(&self, other: &Self) -> bool {
Expand All @@ -66,7 +68,7 @@ impl PartialEq for U64Ratio {
//
// This matches how fractions are defined in abstract algebra:
// https://en.wikipedia.org/wiki/Field_of_fractions
(self.num * other.denom) == (other.num * self.denom)
(self.num * other.denom).eq(&(other.num * self.denom))
}
}

Expand Down

0 comments on commit 31088b8

Please sign in to comment.