Skip to content

Remove unnecessary Option wrapping in Config.rs #371

@tusharmath

Description

@tusharmath

Expanding on #367

The following fields have type Option<bool> and Option<Vec<_>> in various types in config.rs.
We can drop them all and use serde::default for all of them and make our Config a lot more compact.

pub interface: Option<bool>
pub scalar: Option<bool>
pub list: Option<bool>
pub required: Option<bool>
pub list_type_required: Option<bool>
pub omit: Option<bool>
pub list: Option<bool>
pub required: Option<bool>

pub implements: Option<Vec<String>>
pub variants: Option<Vec<String>>
pub match_path: Option<Vec<String>>

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: choreRoutine tasks like conversions, reorganization, and maintenance work.💎 Bounty

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions