Skip to content

Avoiding duplicate parens around enum variant members (related to newtype-wrapping) #250

@Boscop

Description

@Boscop

E.g. if I have this:

#[derive(Deserialize)]
pub enum Foo {
	A(A),
	B(f32),
}

#[derive(Deserialize)]
pub struct A {
	pub b: u8,
}

in RON I have to write A(( b: 42 )).
It would be preferable to be able to just write A( b: 42 ) (similar to the already implemented newtype-wrapping), but currently this gives an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA new feature for the syntax or library.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions