mirror of
https://github.com/storytold/egui.git
synced 2026-11-06 18:42:08 +00:00
e7c7b00a93
`Id::new` and `From<&str> for Id` etc are foot-guns: they hide the fact that an `Id` MUST be globally unique (well, at least unique within your app). So this PR removes both and replaces them with `Id::unique`, which is very explicit. In places where non-uniqueness is desired, you can use `IdSalt`, which has the convenient `From<&str>`. Most changes are in tests. --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: Lucas Meurer <hi@lucasmerlin.me>
