Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RenderContext::new() needn't return Result. #547

Conversation

waywardmonkeys
Copy link
Collaborator

When the support was added for multiple devices, this function no longer could return an error, so a Result is not needed and just makes things more confusing in sample code.

When the support was added for multiple devices, this function
no longer could return an error, so a `Result` is not needed
and just makes things more confusing in sample code.
Copy link
Member

@DJMcNab DJMcNab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, this seems fine. This does conflict with #516, but that's a bigger refactor

@waywardmonkeys waywardmonkeys added this pull request to the merge queue Apr 12, 2024
Merged via the queue into linebender:main with commit a9ede86 Apr 12, 2024
15 checks passed
@waywardmonkeys waywardmonkeys deleted the simplify-rendercontext-new-return branch April 12, 2024 14:49
@waywardmonkeys waywardmonkeys added this to the Vello 0.2 release milestone May 3, 2024
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.

2 participants