diff --git a/egui/src/containers/collapsing_header.rs b/egui/src/containers/collapsing_header.rs index 8681007f..85e747cb 100644 --- a/egui/src/containers/collapsing_header.rs +++ b/egui/src/containers/collapsing_header.rs @@ -152,7 +152,7 @@ impl CollapsingHeader { /// If the label is unique and static this is fine, /// but if it changes or there are several `CollapsingHeader` with the same title /// you need to provide a unique id source with [`Self::id_source`]. - pub fn new(label: impl ToString) -> Self { + pub fn new(label: impl Into) -> Self { let label = Label::new(label).wrap(false); let id_source = Id::new(label.text()); Self { diff --git a/egui/src/containers/combo_box.rs b/egui/src/containers/combo_box.rs index 40480f5c..5a63b298 100644 --- a/egui/src/containers/combo_box.rs +++ b/egui/src/containers/combo_box.rs @@ -23,7 +23,7 @@ use epaint::Shape; pub struct ComboBox { id_source: Id, label: Option