Skip to content

Commit

Permalink
impr: remove unnecessary mut
Browse files Browse the repository at this point in the history
Remove unnecessary mutability qualifiers.
  • Loading branch information
indiv0 committed Nov 21, 2017
1 parent bfaa16b commit 29858ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model.in.rs
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ impl Deserialize for States {
if state.is_none() {
state = Some(more_state);
} else {
if let Some(mut state) = state.as_mut() {
if let Some(state) = state.as_mut() {
state.append(&mut more_state);
}
}
Expand All @@ -595,7 +595,7 @@ impl Deserialize for States {
if statelist.is_none() {
statelist = Some(Some(more_statelist));
} else {
if let Some(mut statelist) = statelist.as_mut() {
if let Some(statelist) = statelist.as_mut() {
if let Some(statelist) = statelist.as_mut() {
statelist.append(&mut more_statelist);
}
Expand Down

0 comments on commit 29858ce

Please sign in to comment.