Skip to content

Implement Default trait for Client, possibly others #351

@Byron

Description

@Byron

To my mind, the standard way in Rust to instantiate something without any arguments is handled by the Default trait. Types implementing it can be aggregated, allowing the aggregator to simply use #[derive(Default)].

I think Client should implement it, and there might be other hyper-types which would need such an implementation as well.

Vec::default() might be a good starting point for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-clientArea: client.E-easyEffort: easy. A task that would be a great starting point for a new contributor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions