Skip to content

cairo: write-to-stream callbacks should accept const pointers to data #1775

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

Merged
merged 1 commit into from
Aug 6, 2025

Conversation

inklesspen
Copy link
Contributor

This is in line with the corresponding C types; they don't need to mutate this data.

Closes #1771.

sdroege
sdroege previously approved these changes Aug 5, 2025
@sdroege sdroege added the needs-backport PR needs backporting to the current stable branch label Aug 5, 2025
@sdroege
Copy link
Member

sdroege commented Aug 5, 2025

Added a fix for the clippy warnings here

@inklesspen
Copy link
Contributor Author

Shouldn't the clippy warning fix be done in a separate PR? It's not even cairo code.

@sdroege
Copy link
Member

sdroege commented Aug 5, 2025

As more fixes are needed now, yes.

@sdroege
Copy link
Member

sdroege commented Aug 5, 2025

I'll rebase this here later once it's otherwise passing.

@sdroege sdroege force-pushed the write-func-const-data branch from 802e07b to 5b83717 Compare August 6, 2025 08:40
@sdroege sdroege merged commit 9110313 into gtk-rs:main Aug 6, 2025
55 of 84 checks passed
@inklesspen inklesspen deleted the write-func-const-data branch August 6, 2025 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-backport PR needs backporting to the current stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Why does the PNG surface's write_func (and cairo_write_func_t) use mutable data?
2 participants