Skip to content

Conversation

@SOF3
Copy link
Contributor

@SOF3 SOF3 commented Jul 6, 2025

This allows libraries to provide an API like

impl<W, F> SomeWrapper<W, F> { pub fn new_serializer(writer: W) -> impl serde::Serializer where F: Default, { serde_json::Serializer::with_formatter(writer, F::default()) } }
Copy link
Member

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

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

Thanks!

@dtolnay dtolnay merged commit 8be6647 into serde-rs:master Aug 19, 2025
16 checks passed
@SOF3 SOF3 deleted the compact-default branch August 19, 2025 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants