From 7803285221aa65cfdbcb2dc3d5efd2e318fa8f9b Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Mon, 10 Oct 2022 22:34:08 +0200 Subject: [PATCH] Remove Debug trait constraint on Id sources --- crates/egui/src/ui.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/egui/src/ui.rs b/crates/egui/src/ui.rs index 8d78b0d6..20ffdd3d 100644 --- a/crates/egui/src/ui.rs +++ b/crates/egui/src/ui.rs @@ -581,7 +581,7 @@ impl Ui { /// Use this to generate widget ids for widgets that have persistent state in [`Memory`]. pub fn make_persistent_id(&self, id_source: IdSource) -> Id where - IdSource: Hash + std::fmt::Debug, + IdSource: Hash, { self.id.with(&id_source) } @@ -593,7 +593,7 @@ impl Ui { pub fn auto_id_with(&self, id_source: IdSource) -> Id where - IdSource: Hash + std::fmt::Debug, + IdSource: Hash, { Id::new(self.next_auto_id_source).with(id_source) }