Simplify `Display` impl of `SerializedSignature`
This is shorter and avoids duplication of slicing logic.
This commit is contained in:
parent
5d51b9d94b
commit
0e0fa06e41
|
@ -28,7 +28,7 @@ impl fmt::Debug for SerializedSignature {
|
|||
|
||||
impl fmt::Display for SerializedSignature {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
for v in self.data.iter().take(self.len) {
|
||||
for v in self {
|
||||
write!(f, "{:02x}", v)?;
|
||||
}
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in New Issue