Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

holochain_metrics: use StatsByMetric(...) due to differing type params #2126

Merged
merged 1 commit into from
Feb 24, 2020

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Feb 24, 2020

This PR fixes a bug in stats.rs (the holochain_metrics crate) discovered in https://crater-reports.s3.amazonaws.com/pr-69340/try%239ff4d07208097950831ed4ea9d76feb1eafc8baa/reg/holochain_metrics-0.0.42-alpha5/log.txt. The problem here is that the type parameter D used in the Self type is not the same as the one returned by the function. This was accepted due to a bug in the compiler and is being fixed by rust-lang/rust#69340.

Copy link
Contributor

@struktured struktured left a comment

Choose a reason for hiding this comment

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

Thanks!

@Centril
Copy link
Contributor Author

Centril commented Feb 24, 2020

CI seems happy :)

@zippy zippy merged commit 789f16c into holochain:master Feb 24, 2020
@zippy
Copy link
Member

zippy commented Feb 24, 2020

whoops, did a bad merge there. Should have been to develop.

@Centril
Copy link
Contributor Author

Centril commented Feb 24, 2020

I assume you'll deal with merging this into develop then. :)

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.

3 participants