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

Use qualified path for Result::Ok in bincode_derive#757

Merged
2 commits merged intobincode-org:trunkfrom
nhaef:trunk
Mar 10, 2025
Merged

Use qualified path for Result::Ok in bincode_derive#757
2 commits merged intobincode-org:trunkfrom
nhaef:trunk

Conversation

@nhaef
Copy link

@nhaef nhaef commented Mar 10, 2025

fixes #756 by using a qualified path for core::result::Result::Ok.

@VictorKoenders
Copy link
Contributor

Can you add a test for this too? Something like:

fn Ok(){}

#[derive(Encode, Decode)]
struct A { a: u32 }

#[derive(Encode, Decode)]
enum B { A, B }

@ghost ghost merged commit bd99729 into bincode-org:trunk Mar 10, 2025
100 of 101 checks passed
This pull request was closed.
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.

bincode_derive's Encode and Decode proc macros fail if module declares use anyhow::Ok

2 participants