Skip to content

fix: make serializer::Error publicly available#5

Merged
pierd merged 1 commit intopierd:mainfrom
chantra:export_error
Mar 16, 2026
Merged

fix: make serializer::Error publicly available#5
pierd merged 1 commit intopierd:mainfrom
chantra:export_error

Conversation

@chantra
Copy link
Copy Markdown
Contributor

@chantra chantra commented Mar 7, 2026

Summary: When trying to but serializer::Error behind a thiserror's [#from] field it fails because the error is only pub(crate), making it non nameable outside maxminddb_writer.
By re-exporting it, it becomes visible and can let the users of the library handle the error more conveniently.

Test Plan: cargo test

@pierd
Copy link
Copy Markdown
Owner

pierd commented Mar 8, 2026

Thanks for the fix. I’m going to be away for a week - I'll have a look as soon as I'm back.

Summary: When trying to but serializer::Error behind a thiserror's `[#from]` field
it fails because the error is only `pub(crate)`, making it non nameable outside
`maxminddb_writer`.
By re-exporting it, it becomes visible and can let the users of the library
handle the error more conveniently.

Test Plan: `cargo test`
@chantra
Copy link
Copy Markdown
Contributor Author

chantra commented Mar 8, 2026

Thanks. In the meantime I forced-pushed the fmt fix.

@pierd pierd merged commit a1dbd87 into pierd:main Mar 16, 2026
3 of 4 checks passed
@pierd
Copy link
Copy Markdown
Owner

pierd commented Mar 16, 2026

@chantra thanks for the fix. I've just published 0.1.2 version with your changes.

@chantra chantra deleted the export_error branch March 16, 2026 22:36
@chantra
Copy link
Copy Markdown
Contributor Author

chantra commented Mar 16, 2026

Thanks @pierd !

@chantra
Copy link
Copy Markdown
Contributor Author

chantra commented Mar 16, 2026

seems the formatter failed . Sorry.

@pierd
Copy link
Copy Markdown
Owner

pierd commented Mar 17, 2026

seems the formatter failed . Sorry.

No worries. That was an easy fix.

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