Skip to content

Use shorter imports#1730

Merged
apoelstra merged 2 commits intorust-bitcoin:masterfrom
tcharding:03-22-imports
Mar 23, 2023
Merged

Use shorter imports#1730
apoelstra merged 2 commits intorust-bitcoin:masterfrom
tcharding:03-22-imports

Conversation

@tcharding
Copy link
Copy Markdown
Member

Just patch 2, patch 1 is #1728

From the commit log of patch 2

Use shorter import statements

As per discussion [0] use the shorter form for importing crates that we
re-export (`hashes` and `secp256k1`).

[0] https://github.com/rust-bitcoin/rust-bitcoin/discussions/1661

We just merged a patch to enable formatting in CI but commit: `05fdead2
Feature: Add difficulty_float method for block::Header.` must have
slipped in.

Run the formatter.
As per discussion [0] use the shorter form for importing crates that we
re-export (`hashes` and `secp256k1`).

[0] rust-bitcoin#1661
Copy link
Copy Markdown
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK 122188f

Copy link
Copy Markdown
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.

utACK 122188f

@apoelstra apoelstra merged commit 531dbc8 into rust-bitcoin:master Mar 23, 2023
@tcharding tcharding deleted the 03-22-imports branch March 23, 2023 21:10
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