Skip to content

Commit b91291f

Browse files
bors[bot]ltratt
andauthored
Merge #23
23: Prepare a 0.2.0 release. r=ptersilie a=ltratt Co-authored-by: Laurence Tratt <[email protected]>
2 parents 0bedd1c + 2530d4c commit b91291f

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# sparsevec 0.2.0 (2022-07-25)
2+
3+
* Move the backing storage (consisting of `PackedVec`s and `Vob`s) from `usize`
4+
to `u64`. This makes serialising/deserialising across machine widths possible
5+
(though not necessarily reliable!).
6+
7+
18
# sparsevec 0.1.4 (2021-10-20)
29

310
* Upgrade dependencies.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sparsevec"
33
description = "Compress vectors using row displacement"
4-
version = "0.1.4"
4+
version = "0.2.0"
55
edition = "2018"
66
authors = ["Lukas Diekmann <[email protected]>"]
77
repository = "https://github.com/softdevteam/sparsevec/"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ fn fits<T: PartialEq>(v: &[T], target: &[T], d: usize, empty_val: T) -> bool {
205205
true
206206
}
207207

208-
fn apply<T: Copy + PartialEq>(v: &[T], target: &mut Vec<T>, d: usize, empty_val: T) {
208+
fn apply<T: Copy + PartialEq>(v: &[T], target: &mut [T], d: usize, empty_val: T) {
209209
for i in 0..v.len() {
210210
if v[i] != empty_val {
211211
target[d + i] = v[i]

0 commit comments

Comments
 (0)