Skip to content

Conversation

@Neocryptoquant
Copy link

Changes made:
#[cfg(feature = "internal-test")]
pub fn get_feature_set(&self) -> Arc<FeatureSet> {
self.feature_set.clone(). into()

Command cargo bench --features internal-test ran with error, until I added the bolded

error[E0308]: mismatched types
--> crates/litesvm/src/lib.rs:1306:9
|
1305 | pub fn get_feature_set(&self) -> Arc {
| --------------- expected Arc<FeatureSet> because of return type
1306 | self.feature_set.clone()
| ^^^^^^^^^^^^^^^^^^^^^^^^ expected Arc<FeatureSet>, found FeatureSet
|
= note: expected struct Arc<FeatureSet>
found struct FeatureSet
help: call Into::into on this expression to convert FeatureSet into Arc<FeatureSet>
|
1306 | self.feature_set.clone().into()
| +++++++

Sign up for free to 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.

1 participant