Pooled bound: the coercions to a type-erased texture keep their cast

3b6d600892 dropped the cast from both, and Arc::clone then takes its argument's type from the
annotation (m3-max-18585 refused it).
This commit is contained in:
Anees Iqbal committed 2026-11-11 20:59:46 -08:00
1 parent 59e44d4314
commit cd8f1e5140
1 file changed
+2 -2
+2 -2
View File
@@ -2438,7 +2438,7 @@ impl Device {
// A shadow of its linear cost over bytes no other texture was made over moves once
// one is (`texture_spans.rs`).
Some(MoveAfter::Aliases(pending)) => {
let shared: Arc<dyn Any + Send + Sync> = Arc::clone(&texture.0);
let shared: Arc<dyn Any + Send + Sync> = Arc::clone(&texture.0) as _;
let bytes = texels.layout.offset..texels.layout.end();
(texels.buffer).wait_for_texture_over(bytes, Arc::downgrade(&shared), pending);
}
@@ -5194,7 +5194,7 @@ impl Texture {
if let Some((bytes, image, exact)) = texture.image_over_bytes() {
let sink = image.plan().usage.contains(ImageUsageFlags::STORAGE);
let keeps = texture.tiled_levels();
let shared: Arc<dyn Any + Send + Sync> = Arc::clone(&texture.0);
let shared: Arc<dyn Any + Send + Sync> = Arc::clone(&texture.0) as _;
let image: Arc<dyn Any + Send + Sync> = Arc::clone(image) as _;
bytes.note_texture(NotedTexture::new(
Arc::downgrade(&shared),