diff --git a/egui_plot/src/plot.rs b/egui_plot/src/plot.rs index 16b30c0c..335f08d3 100644 --- a/egui_plot/src/plot.rs +++ b/egui_plot/src/plot.rs @@ -137,7 +137,7 @@ pub struct Plot<'a> { impl<'a> Plot<'a> { /// Give a unique id for each plot within the same [`Ui`]. - pub fn new(id_source: impl std::hash::Hash) -> Self { + pub fn new(id_source: impl std::hash::Hash + std::fmt::Debug) -> Self { Self { id_source: Id::new(id_source), id: None,