Function
write_list
(f: &mut fmt::Formatter, args: &[AbiParam])
Source from the content-addressed store, hash-verified
| 105 | } |
| 106 | |
| 107 | fn write_list(f: &mut fmt::Formatter, args: &[AbiParam]) -> fmt::Result { |
| 108 | match args.split_first() { |
| 109 | None => {} |
| 110 | Some((first, rest)) => { |
| 111 | write!(f, "{first}")?; |
| 112 | for arg in rest { |
| 113 | write!(f, ", {arg}")?; |
| 114 | } |
| 115 | } |
| 116 | } |
| 117 | Ok(()) |
| 118 | } |
| 119 | |
| 120 | impl fmt::Display for Signature { |
| 121 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |
Tested by
no test coverage detected