From 4ec3ef5302699832fd24518f84009fcda86f3652 Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Wed, 6 May 2020 14:05:26 -0400 Subject: [PATCH] Fix some warnings --- Cargo.toml | 2 +- src/values.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); } }