Reintroduce the lint disabled #47 alongside with fixing the lint issues in `state.rs`.
Reintroduce the lint disabled #47 alongside with fixing the lint issues in
state.rs.