Skip to content

Commit

Permalink
Fix a compiler warning about mem::replace
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzgen committed May 13, 2020
1 parent 73c43d4 commit fcbfee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/read/cfi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2413,7 +2413,7 @@ impl<R: Reader> RegisterRuleMap<R> {
for &mut (reg, ref mut old_rule) in self.rules_mut() {
debug_assert!(old_rule.is_defined());
if reg == register {
mem::replace(old_rule, rule);
*old_rule = rule;
return Ok(());
}
}
Expand Down

0 comments on commit fcbfee5

Please sign in to comment.