diff --git a/src/ext.rs b/src/ext.rs index 6d09910..8217e8f 100644 --- a/src/ext.rs +++ b/src/ext.rs @@ -172,8 +172,11 @@ impl VecExt for Vec (_, Some(bound)) | (bound, _) => self.reserve(bound), }; - let splice = self.split_off(location); - self.extend(slice.chain(splice.into_iter())); + self.splice(location..location, slice); + + //let splice = self.split_off(location); + //self.extend(slice.chain(splice.into_iter())); + /* // shift everything across, replacing with the new values let splice: Vec<_> = self.splice(location.., slice).collect(); diff --git a/src/state/local/mod.rs b/src/state/local/mod.rs index 80fb3df..df42583 100644 --- a/src/state/local/mod.rs +++ b/src/state/local/mod.rs @@ -111,7 +111,7 @@ mod tests title: None, karada, - worker: Worker::Suspended(kokoro), + worker: kokoro, timestamp: post::PostTimestamp::new() }