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

Avoid panics when calling into dwrote #260

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

acarl005
Copy link

This PR removes some panicking code paths from the directwrite wrappers.

It builds off of servo/dwrote-rs#62 to consume the new fallible methods that result Results instead of panicking. Note that it needs a version bump in the Cargo.toml once that is published.

I also have servo/dwrote-rs#63 open so I can migrate more calls if that one lands.

@mrobinson mrobinson changed the title remove some panics from directwrite methods Avoid panics when calling into dwrote Mar 10, 2025
@mrobinson
Copy link
Member

I think this will also need to bump the version of dwrote used when the new one is released.

Copy link
Member

@mrobinson mrobinson left a comment

Choose a reason for hiding this comment

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

Please increase the dwrote dependency version (might require a new release there) and also update the commit title to match the new PR title.

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