Skip to content

Commit 9749dad

Browse files
committed
Bind to s instead of e
This error variant contains a string not an error type, bind to local variable `s` instead of `e` to make this explicit.
1 parent 0c56d44 commit 9749dad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/consensus/encode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl fmt::Display for Error {
9696
"invalid checksum: expected {}, actual {}", e.to_hex(), a.to_hex()),
9797
Error::NonMinimalVarInt => write!(f, "non-minimal varint"),
9898
Error::UnknownNetworkMagic(ref m) => write!(f, "unknown network magic: {}", m),
99-
Error::ParseFailed(ref e) => write!(f, "parse failed: {}", e),
99+
Error::ParseFailed(ref s) => write!(f, "parse failed: {}", s),
100100
Error::UnsupportedSegwitFlag(ref swflag) => write!(f,
101101
"unsupported segwit version: {}", swflag),
102102
}

0 commit comments

Comments
 (0)