Skip to content

Conversation

@kkoyung
Copy link
Member

@kkoyung kkoyung commented May 24, 2025

ImageBitmap::new always returns Ok. Simplify it by changing to return DomRoot directly.

The #[allow(dead_code)] seems unnecessary. This patch also removes it.

Testing: No test is needed.
Fixes: #37105

ImageBitmap::new always returns Ok. Simplify it by changing to return
DomRoot<ImageBitmap> directly.

The #[allow(dead_code)] seems unnecessary. This patch also removes it.

Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>
@kkoyung kkoyung requested a review from gterzian as a code owner May 24, 2025 06:02
@mrobinson mrobinson added this pull request to the merge queue May 24, 2025
Merged via the queue into servo:main with commit abc3374 May 24, 2025
21 checks passed
@kkoyung kkoyung deleted the imagebitmap-direct-return branch August 19, 2025 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ImageBitmap::new always returns Ok

2 participants