Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

removes manual trait impl for contact-info #17332

Merged
merged 1 commit into from
May 19, 2021

Conversation

behzadnouri
Copy link
Contributor

Problem

The current implementations only use the id and disregard other fields,
in particular wallclock. This can lead to bugs where an outdated
contact-info shadows or overrides a current one because they compare
equal.

Summary of Changes

Removed manual implementation in favor of derive macro.

The current implementations only use the id and disregard other fields,
in particular wallclock. This can lead to bugs where an outdated
contact-info shadows or overrides a current one because they compare
equal.
@codecov
Copy link

codecov bot commented May 19, 2021

Codecov Report

Merging #17332 (c303a4e) into master (b5302e7) will increase coverage by 0.0%.
The diff coverage is 100.0%.

@@           Coverage Diff           @@
##           master   #17332   +/-   ##
=======================================
  Coverage    82.6%    82.7%           
=======================================
  Files         423      423           
  Lines      118053   118037   -16     
=======================================
+ Hits        97626    97649   +23     
+ Misses      20427    20388   -39     

Copy link
Contributor

@CriesofCarrots CriesofCarrots left a comment

Choose a reason for hiding this comment

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

New to this area, but makes sense to me.

@behzadnouri behzadnouri merged commit 13b032b into solana-labs:master May 19, 2021
@behzadnouri behzadnouri deleted the contact-info-impl branch May 19, 2021 20:56
mergify bot pushed a commit that referenced this pull request May 19, 2021
The current implementations use only the id and disregard other fields,
in particular wallclock. This can lead to bugs where an outdated
contact-info shadows or overrides a current one because they compare
equal.

(cherry picked from commit 13b032b)
mergify bot added a commit that referenced this pull request May 19, 2021
The current implementations use only the id and disregard other fields,
in particular wallclock. This can lead to bugs where an outdated
contact-info shadows or overrides a current one because they compare
equal.

(cherry picked from commit 13b032b)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
@brooksprumo brooksprumo mentioned this pull request Aug 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants