Skip to content

Commit c3a02d2

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 2968a10 commit c3a02d2

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
@@ -253,23 +253,17 @@ impl ToPublicKey for bitcoin::PublicKey {
253253
fn to_public_key(&self) -> bitcoin::PublicKey { *self }
254254

255255
fn to_sha256(hash: &sha256::Hash) -> sha256::Hash { *hash }
256-
257256
fn to_hash256(hash: &hash256::Hash) -> hash256::Hash { *hash }
258-
259257
fn to_ripemd160(hash: &ripemd160::Hash) -> ripemd160::Hash { *hash }
260-
261258
fn to_hash160(hash: &hash160::Hash) -> hash160::Hash { *hash }
262259
}
263260

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

267264
fn to_sha256(hash: &sha256::Hash) -> sha256::Hash { *hash }
268-
269265
fn to_hash256(hash: &hash256::Hash) -> hash256::Hash { *hash }
270-
271266
fn to_ripemd160(hash: &ripemd160::Hash) -> ripemd160::Hash { *hash }
272-
273267
fn to_hash160(hash: &hash160::Hash) -> hash160::Hash { *hash }
274268
}
275269

@@ -286,11 +280,8 @@ impl ToPublicKey for bitcoin::secp256k1::XOnlyPublicKey {
286280
fn to_x_only_pubkey(&self) -> bitcoin::secp256k1::XOnlyPublicKey { *self }
287281

288282
fn to_sha256(hash: &sha256::Hash) -> sha256::Hash { *hash }
289-
290283
fn to_hash256(hash: &hash256::Hash) -> hash256::Hash { *hash }
291-
292284
fn to_ripemd160(hash: &ripemd160::Hash) -> ripemd160::Hash { *hash }
293-
294285
fn to_hash160(hash: &hash160::Hash) -> hash160::Hash { *hash }
295286
}
296287

0 commit comments

Comments
 (0)