Skip to content

Commit 5dbfdf5

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 18958a7 commit 5dbfdf5

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

258258
fn to_sha256(hash: &sha256::Hash) -> sha256::Hash { *hash }
259-
260259
fn to_hash256(hash: &hash256::Hash) -> hash256::Hash { *hash }
261-
262260
fn to_ripemd160(hash: &ripemd160::Hash) -> ripemd160::Hash { *hash }
263-
264261
fn to_hash160(hash: &hash160::Hash) -> hash160::Hash { *hash }
265262
}
266263

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

270267
fn to_sha256(hash: &sha256::Hash) -> sha256::Hash { *hash }
271-
272268
fn to_hash256(hash: &hash256::Hash) -> hash256::Hash { *hash }
273-
274269
fn to_ripemd160(hash: &ripemd160::Hash) -> ripemd160::Hash { *hash }
275-
276270
fn to_hash160(hash: &hash160::Hash) -> hash160::Hash { *hash }
277271
}
278272

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

291285
fn to_sha256(hash: &sha256::Hash) -> sha256::Hash { *hash }
292-
293286
fn to_hash256(hash: &hash256::Hash) -> hash256::Hash { *hash }
294-
295287
fn to_ripemd160(hash: &ripemd160::Hash) -> ripemd160::Hash { *hash }
296-
297288
fn to_hash160(hash: &hash160::Hash) -> hash160::Hash { *hash }
298289
}
299290

0 commit comments

Comments
 (0)