diff --git a/crates/egui/src/id.rs b/crates/egui/src/id.rs index 94184e0a..682818f9 100644 --- a/crates/egui/src/id.rs +++ b/crates/egui/src/id.rs @@ -85,6 +85,13 @@ impl From<&'static str> for Id { } } +impl From for Id { + #[inline] + fn from(string: String) -> Self { + Self::new(string) + } +} + // ---------------------------------------------------------------------------- // Idea taken from the `nohash_hasher` crate.