Skip to content

Commit 0e0fa06

Browse files
committed
Simplify Display impl of SerializedSignature
This is shorter and avoids duplication of slicing logic.
1 parent 5d51b9d commit 0e0fa06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ecdsa/serialized_signature.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl fmt::Debug for SerializedSignature {
2828

2929
impl fmt::Display for SerializedSignature {
3030
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
31-
for v in self.data.iter().take(self.len) {
31+
for v in self {
3232
write!(f, "{:02x}", v)?;
3333
}
3434
Ok(())

0 commit comments

Comments
 (0)