Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhoo committed May 6, 2020
1 parent 44eed56 commit 4ec3ef5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "evmap"
version = "10.0.0"
version = "10.0.1"
authors = ["Jon Gjengset <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions src/values.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ where
assert_eq!(n, 1);
short.push(row);
}
std::mem::replace(&mut self.0, ValuesInner::Short(short));
self.0 = ValuesInner::Short(short);
} else {
v.shrink_to_fit();
}
Expand Down Expand Up @@ -240,7 +240,7 @@ where
// exact same original state, this change from short/long should occur exactly
// the same.
long.extend(v.drain(..));
std::mem::replace(&mut self.0, ValuesInner::Long(long));
self.0 = ValuesInner::Long(long);
}
}

Expand Down

0 comments on commit 4ec3ef5

Please sign in to comment.