Skip to content

Added needed traits to NetworkSize - #175

Merged
achanda merged 3 commits into
achanda:masterfrom
ctrlcctrlv:netsize_traits
Jun 14, 2023
Merged

Added needed traits to NetworkSize#175
achanda merged 3 commits into
achanda:masterfrom
ctrlcctrlv:netsize_traits

Conversation

@ctrlcctrlv

Copy link
Copy Markdown
Contributor

Closes#174.

Comment threadsrc/lib.rs
Comment on lines -121 to -122
#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq, PartialOrd, Ord)]
pub enum NetworkSize {

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This auto-derivation is wrong. I implemented Eq correctly in size.rs.

@achanda
achanda merged commit d19ac33 into achanda:masterJun 14, 2023
@ctrlcctrlvctrlcctrlv mentioned this pull request Jun 30, 2023
@github-actionsgithub-actionsBot mentioned this pull request Jan 6, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NetworkSize should implement From<u32>, From<u128>, TryInto<u32> and Into<u128>

2 participants

@ctrlcctrlv@achanda