diff --git a/webrender/src/picture.rs b/webrender/src/picture.rs index aeaac37627..e8746ad161 100644 --- a/webrender/src/picture.rs +++ b/webrender/src/picture.rs @@ -5014,7 +5014,7 @@ impl PicturePrimitive { let content_device_rect = content_device_rect .intersection(&max_content_rect) - .expect("bug: no intersection with tile dirty rect: {content_device_rect:?} / {max_content_rect:?}"); + .expect("bug: no intersection with tile dirty rect"); let content_task_size = content_device_rect.size(); let normalized_content_rect = content_task_size.into(); diff --git a/webrender/src/render_task.rs b/webrender/src/render_task.rs index 38241771c8..97c8319669 100644 --- a/webrender/src/render_task.rs +++ b/webrender/src/render_task.rs @@ -940,7 +940,6 @@ impl RenderTask { size: DeviceIntSize, kind: RenderTaskKind, ) -> Self { - assert!(!size.is_empty()); RenderTask::new( RenderTaskLocation::Unallocated { size }, kind, diff --git a/webrender/src/renderer/upload.rs b/webrender/src/renderer/upload.rs index a28442bb40..0ba053cd76 100644 --- a/webrender/src/renderer/upload.rs +++ b/webrender/src/renderer/upload.rs @@ -660,7 +660,7 @@ impl UploadTexturePool { ImageFormat::RGBA8 => 0, ImageFormat::BGRA8 => 1, ImageFormat::R8 => 2, - _ => { panic!("unexpected format {:?}", format); } + _ => { panic!("unexpected format"); } } }