1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 04:40:03 -04:00

Update to Rust 1.76 (#4411)

Motivation: I want to replace `cargo-cranky` with workspace lints, first
available in Rust 1.74.
However, `cargo doc` would hange on `wgpu` and `wgpu-core` on 1.74 and
1.75… so now we're on 1.76.
I think this is fine - when 1.78 is released next week we're still two
versions behind the bleeding edge.

…and the branch name is just wrong 🤦
This commit is contained in:
Emil Ernerfeldt
2024-04-25 15:51:01 +02:00
committed by GitHub
parent bfe1858e0b
commit cee790681d
37 changed files with 45 additions and 48 deletions

View File

@@ -1293,12 +1293,7 @@ impl std::fmt::Debug for PaintCallback {
impl std::cmp::PartialEq for PaintCallback {
fn eq(&self, other: &Self) -> bool {
// As I understand it, the problem this clippy is trying to protect against
// can only happen if we do dynamic casts back and forth on the pointers, and we don't do that.
#[allow(clippy::vtable_address_comparisons)]
{
self.rect.eq(&other.rect) && Arc::ptr_eq(&self.callback, &other.callback)
}
self.rect.eq(&other.rect) && Arc::ptr_eq(&self.callback, &other.callback)
}
}