Skip to content

Commit 73c3e72

Browse files
committed
Remove whitespace
Remove the whitespace between trivial trait method impls. This reduces line count without making the code any harder to read, arguably easier.
1 parent b56f446 commit 73c3e72

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/lib.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -255,23 +255,17 @@ impl ToPublicKey for bitcoin::PublicKey {
255255
fn to_public_key(&self) -> bitcoin::PublicKey { *self }
256256

257257
fn to_sha256(hash: &sha256::Hash) -> sha256::Hash { *hash }
258-
259258
fn to_hash256(hash: &hash256::Hash) -> hash256::Hash { *hash }
260-
261259
fn to_ripemd160(hash: &ripemd160::Hash) -> ripemd160::Hash { *hash }
262-
263260
fn to_hash160(hash: &hash160::Hash) -> hash160::Hash { *hash }
264261
}
265262

266263
impl ToPublicKey for bitcoin::secp256k1::PublicKey {
267264
fn to_public_key(&self) -> bitcoin::PublicKey { bitcoin::PublicKey::new(*self) }
268265

269266
fn to_sha256(hash: &sha256::Hash) -> sha256::Hash { *hash }
270-
271267
fn to_hash256(hash: &hash256::Hash) -> hash256::Hash { *hash }
272-
273268
fn to_ripemd160(hash: &ripemd160::Hash) -> ripemd160::Hash { *hash }
274-
275269
fn to_hash160(hash: &hash160::Hash) -> hash160::Hash { *hash }
276270
}
277271

@@ -288,11 +282,8 @@ impl ToPublicKey for bitcoin::secp256k1::XOnlyPublicKey {
288282
fn to_x_only_pubkey(&self) -> bitcoin::secp256k1::XOnlyPublicKey { *self }
289283

290284
fn to_sha256(hash: &sha256::Hash) -> sha256::Hash { *hash }
291-
292285
fn to_hash256(hash: &hash256::Hash) -> hash256::Hash { *hash }
293-
294286
fn to_ripemd160(hash: &ripemd160::Hash) -> ripemd160::Hash { *hash }
295-
296287
fn to_hash160(hash: &hash160::Hash) -> hash160::Hash { *hash }
297288
}
298289

0 commit comments

Comments
 (0)