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

Removes glob import of ApplyFeatureActivationsCaller #34334

Conversation

brooksprumo
Copy link
Contributor

@brooksprumo brooksprumo commented Dec 6, 2023

Problem

Well... today I learned about glob imports of enums and how they interact with match statements. Basically, glob imports of an enum that are used with a match can be a footgun. Refer to this playground:

https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=9f0ce5f074f7b4a71f487ae8c6a1902d

Summary of Changes

Removes glob import of ApplyFeatureActivationsCaller.

@brooksprumo brooksprumo self-assigned this Dec 6, 2023
@brooksprumo brooksprumo marked this pull request as ready for review December 6, 2023 06:17
Copy link

codecov bot commented Dec 6, 2023

Codecov Report

Merging #34334 (186f36e) into master (5c00a33) will increase coverage by 0.0%.
Report is 2 commits behind head on master.
The diff coverage is 66.6%.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #34334    +/-   ##
========================================
  Coverage    81.9%    82.0%            
========================================
  Files         819      819            
  Lines      220422   220422            
========================================
+ Hits       180652   180781   +129     
+ Misses      39770    39641   -129     

Copy link
Contributor

@HaoranYi HaoranYi left a comment

Choose a reason for hiding this comment

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

interesting finding! lgtm

@brooksprumo brooksprumo merged commit 49ffe42 into solana-labs:master Dec 6, 2023
@brooksprumo brooksprumo deleted the use-enum/apply-feature-activations branch December 6, 2023 17:48
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