Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect docs: DefaultConfig #323

Open
e-ivkov opened this issue Dec 27, 2022 · 0 comments
Open

Incorrect docs: DefaultConfig #323

e-ivkov opened this issue Dec 27, 2022 · 0 comments

Comments

@e-ivkov
Copy link

e-ivkov commented Dec 27, 2022

/// - Writes enum variants as integers

It seems it doesn't actually write enum variants by index, it uses idents as strings to prefix enum variant.

Impl:

fn write_variant_ident<S>(
ser: &mut S,
_variant_index: u32,
variant: &'static str,
) -> Result<(), Error>
where
S: UnderlyingWrite,
for<'a> &'a mut S: Serializer<Ok = (), Error = Error>,
{
ser.serialize_str(variant)
}

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

No branches or pull requests

1 participant