Skip to content

Commit 02ea733

Browse files
committed
Merge rust-bitcoin#5078: units: replace wildcard import with specific imports in verification
f050a95 units: replace wildcard import with specific imports in verification (Daniel) Pull request description: Replace `use super::*;` with `use super::{Amount, SignedAmount};` in amount verification module. Only these two types are actually used in the verification tests. Improves code readability and follows Rust best practices of preferring specific imports over wildcards ACKs for top commit: tcharding: ACK f050a95 apoelstra: ACK f050a95; successfully ran local tests Tree-SHA512: 1836308d906bd1d1c88b8f80de1f3af5178ae7b6b7257547545ead48d9f4a049ebaca1ef318b8bdb4ca5d1ffd46daca14b9d055f03faea6ffcad7662da7a646c
2 parents ee2b14c + f050a95 commit 02ea733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

units/src/amount/verification.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
use std::cmp;
66

7-
use super::*;
7+
use super::{Amount, SignedAmount};
88

99
// Note regarding the `unwind` parameter: this defines how many iterations
1010
// of loops kani will unwind before handing off to the SMT solver. Basically

0 commit comments

Comments
 (0)