Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Generate qualified Result type in derive#430

Merged
VictorKoenders merged 1 commit intobincode-org:trunkfrom
andrenth:qualified-result
Nov 5, 2021
Merged

Generate qualified Result type in derive#430
VictorKoenders merged 1 commit intobincode-org:trunkfrom
andrenth:qualified-result

Conversation

@andrenth
Copy link
Contributor

@andrenth andrenth commented Nov 5, 2021

This prevents problems with generated code when there's an alias for a crate-specific Result type, i.e. type Result<T> = std::result::Result<T, MyError>.

@VictorKoenders
Copy link
Contributor

Thanks!

Just out of sheer interest, how easy did you find it to go through the bincode_derive crate and figure out where you had to change things?

@VictorKoenders VictorKoenders merged commit 4120069 into bincode-org:trunk Nov 5, 2021
@andrenth
Copy link
Contributor Author

andrenth commented Nov 5, 2021

It was pretty easy to find, but honestly I didn't even have to go through the code, because a grep Result derive/src/* pretty much told me what to do :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants