173a1a80cb
There were two issues: 1. We were accidentally calling `as_any` on `handle,` rather than `handle.0` 2. Calling `as_any` can invoke the wrong implementation, depending on what traits are in scope. We want the method implemented on the underlying type (`RegistryData`) to be used, but if `Downcast` is explicitly imported, then we appear to invoke it on the trait object `dyn BitmapHandleImpl` itself (using the fact that trait objects themselves implement `Any`). We now explicitly call the generated method on the trait object, which avoids this issue. |
||
---|---|---|
.. | ||
shaders | ||
src | ||
Cargo.toml |