Skip to content

Commit f0100e1

Browse files
committed
Stop indexing hash types
In preparation for removing `SliceIndex` from hash type impls (in `bitcoin_hashes`) lets stop indexing hash types here. Internal change only.
1 parent 59f122d commit f0100e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/secret.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ macro_rules! impl_display_secret {
2020

2121
let mut engine = sha256::Hash::engine();
2222
let tag_hash = sha256::Hash::hash(tag.as_bytes());
23-
engine.input(&tag_hash[..]);
24-
engine.input(&tag_hash[..]);
23+
engine.input(&tag_hash.as_ref());
24+
engine.input(&tag_hash.as_ref());
2525
engine.input(&self.secret_bytes());
2626
let hash = sha256::Hash::from_engine(engine);
2727

0 commit comments

Comments
 (0)