Closed
Description
Bug Summary
The following two cases are caught by clippy::shadow_unrelated
. There are other cases, but these two cases are special as they are using the exact same value. So we can remove the shadowing and use the first binding directly.
- ibc-core/ics04-channel/src/handler/acknowledgement.rs
is shadowed by
Since msg
is immutable, both are the same. We can remove second one and use the previous variable directly.
- ibc-core/ics04-channel/src/handler/timeout.rs
is shadowed by
Since packet
is immutable, we can use previous one directly.
Details
Version
<= 0.50.0