diff --git a/Cargo.toml b/Cargo.toml index 81866ff..35778df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "evmap" -version = "10.0.0" +version = "10.0.1" authors = ["Jon Gjengset "] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/src/values.rs b/src/values.rs index 6601c3b..ec6ec32 100644 --- a/src/values.rs +++ b/src/values.rs @@ -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(); } @@ -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); } }