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

codegen: Use GString::as_str instead of Option<GString>::as_deref #1327

Merged
merged 1 commit into from
Mar 13, 2022

Conversation

jf2048
Copy link
Member

@jf2048 jf2048 commented Mar 11, 2022

Needed for gtk-rs/gtk-rs-core#600, but doesn't depend on it (this PR shouldn't break anything)

@sdroege sdroege merged commit bb52094 into gtk-rs:master Mar 13, 2022
heftig added a commit to heftig/gir that referenced this pull request Mar 30, 2022
We can't call `as_str` on `Option<GString>`.

Pre-gtk-rs#1327, we used `as_deref` to make use of `GString`'s
deref-to-`&str`.
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