Skip to content

Commit 47fc2c6

Browse files
committed
Remove re-implementation of default method
The `MiniscriptKey` trait has a default implementation for `is_uncompressed` that returns `false`. No need to re-implement it.
1 parent d1da214 commit 47fc2c6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,6 @@ pub trait MiniscriptKey: Clone + Eq + Ord + fmt::Debug + fmt::Display + hash::Ha
154154
}
155155

156156
impl MiniscriptKey for bitcoin::secp256k1::PublicKey {
157-
/// `is_uncompressed` always returns `false`
158-
fn is_uncompressed(&self) -> bool {
159-
false
160-
}
161-
162157
type Hash = hash160::Hash;
163158

164159
fn to_pubkeyhash(&self) -> Self::Hash {

0 commit comments

Comments
 (0)