Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plan: make LoggerAssetProvider constructible #697

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

apoelstra
Copy link
Member

It looks like we have an example AssetProvider that is intended to be used for testing/debugging. It looks useful but evidently has never been used because it was impossible to construct.

Recent versions of rust nightly notice this and output a warning about this, which is causing CI to fail, so we need to fix it.

My solution is to make the inner Assets public (and also a reference, since there is no need to take ownership) so that people can easily construct and deconstruct the type.

It looks like we have an example AssetProvider that is intended to be
used for testing/debugging. It looks useful but evidently has never been
used because it was impossible to construct.

Recent versions of rust nightly notice this and output a warning about
this, which is causing CI to fail, so we need to fix it.

My solution is to make the inner `Assets` public (and also a reference,
since there is no need to take ownership) so that people can easily
construct and deconstruct the type.
Copy link
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

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

ACK c79639d

@apoelstra
Copy link
Member Author

cc @sanket1729

Copy link
Member

@sanket1729 sanket1729 left a comment

Choose a reason for hiding this comment

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

ACK c79639d

@sanket1729
Copy link
Member

@apoelstra, need to merge this before #704 .

@apoelstra apoelstra merged commit dc502f4 into rust-bitcoin:master Jul 8, 2024
8 checks passed
@apoelstra apoelstra deleted the 2024-06--logger branch July 8, 2024 18:07
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.

3 participants