Skip to content

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
@apoelstra apoelstra deleted the 2024-06--logger branch July 8, 2024 18:07
heap-coder added a commit to heap-coder/rust-miniscript that referenced this pull request Sep 27, 2025
…r constructible

c79639d8ef016fe2d7291d1a826fdea8d47c91a2 clippy: fix doc indentation (Andrew Poelstra)
b39b70772788596caee7acbc4ca1ec5277892f1e plan: make LoggerAssetProvider constructible (Andrew Poelstra)

Pull request description:

  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.

ACKs for top commit:
  tcharding:
    ACK c79639d8ef016fe2d7291d1a826fdea8d47c91a2
  sanket1729:
    ACK c79639d8ef016fe2d7291d1a826fdea8d47c91a2

Tree-SHA512: c19e00c88f79edd7b99632470b556385a36ba59112d8015222321581f87d0110f155fc725bfc05187201fc7a3845998427887852d09bda0e20354570de4b7e8e
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