I had quite a few panics, mostly when accessing something like name (IconName or WindowName). I don't think it's a good practice to just panic there, as it kind of seems to be allowed that parameters are sometimes optional.
I'm not sure which parameter is really optional, so also to not change the API I'll just use default values, it almost always still makes sense (empty name, or width/height == 0).
I had quite a few panics, mostly when accessing something like
name
(IconName or WindowName). I don't think it's a good practice to just panic there, as it kind of seems to be allowed that parameters are sometimes optional. I'm not sure which parameter is really optional, so also to not change the API I'll just use default values, it almost always still makes sense (empty name, or width/height == 0).Also applied a few clippy lints on the way...