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

Have JpegEncoder::new take an owned writer #1608

Merged
merged 1 commit into from
Nov 6, 2021

Conversation

fintelia
Copy link
Contributor

@fintelia fintelia commented Nov 6, 2021

Makes JpegEncoder more consistent with other encoders. Should hopefully cause minimal breakage, because Write is implemented for mutable references to writers:

impl<'a, W: Write + ?Sized> Write for &'a mut W

Fixes #1605

@HeroicKatora HeroicKatora merged commit a29cdc2 into image-rs:master Nov 6, 2021
@fintelia fintelia deleted the jpeg-owned-writer branch July 9, 2023 02:44
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.

Signature difference between PngEncoder::new and JpegEncoder::new
2 participants