Skip to content

Change VoteCollector::vote to return Result<(), DoubleVote<M>> rather than Option<DoubleVote<M>> #1766

Closed

Description

@foriequal0

Rust can ensure Result<T, E> must be used while Option<T> doesn't. It'll prevent some classes of errors.

Activity

  1. seonpyoKim commented on Oct 18, 2019

    @seonpyoKim
    Contributor

    Is this issue fully resolved with the pr #1800 or some other code is still remaining?

  2. foriequal0 commented on Oct 18, 2019

    @foriequal0
    ContributorAuthor

    This issue is fully resolved with it. I'll close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions