Skip to content

feat: Add format_into - #13

Merged
jan-auer merged 3 commits into
jan-auer:masterfrom
tobias-wilfert:tobias-wilfert/feat/format-into
Aug 12, 2026
Merged

feat: Add format_into#13
jan-auer merged 3 commits into
jan-auer:masterfrom
tobias-wilfert:tobias-wilfert/feat/format-into

Conversation

@tobias-wilfert

Copy link
Copy Markdown
Contributor

Adds format_into which logically does the same as format only that instead of returning a Cow it writes the outcome to a provided writer. Also rewrites format to internally make use of format_into (to avoid duplicate logic).

@tobias-wilfert

Copy link
Copy Markdown
Contributor Author

Please see getsentry/relay#6303 for an idea of how we want to use this.

Comment thread src/lib.rs
Comment thread src/lib.rs

@jan-auer jan-auer left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks! CI will likely fail since this crate is heavily out of date.

* origin/master:
  Update CI
  Fix clippy warnings

# Conflicts:
#	src/lib.rs
The stricter clippy config merged from master flags the unnecessary
& borrows on array literals and an unused import.
@jan-auer
jan-auer merged commit 81b691a into jan-auer:master Aug 12, 2026
3 checks passed
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