Skip to content

Commit e412631

Browse files
bugfix: drop unstable type-changing-struct-update feature
1 parent d8404ee commit e412631

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22

3-
## 2.0
3+
## 2.0.1
4+
- Drop accidental `#[feature(type-changing-struct-update)]`
5+
6+
## 2.0.0
47
- **Breaking**: Migrate to `packed-seq` `4.0` with `PaddedIt`.
58
- **Breaking**: Improve simd versions for short sequences by reusing allocated buffers.
69
- **Feature**: Use `seq-hash` crate to cleanly support multiple kmer hashers; add `*_with_hasher` function variants.

src/lib.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(type_changing_struct_update)]
21
//! A library to quickly compute (canonical) minimizers of DNA and text sequences.
32
//!
43
//! The main functions are:
@@ -239,8 +238,10 @@ impl<const CANONICAL: bool> Builder<'static, CANONICAL, NtHasher<CANONICAL>, ()>
239238
#[must_use]
240239
pub fn hasher<'h, H2: KmerHasher>(&self, hasher: &'h H2) -> Builder<'h, CANONICAL, H2, ()> {
241240
Builder {
241+
k: self.k,
242+
w: self.w,
243+
sk_pos: (),
242244
hasher: Some(hasher),
243-
..*self
244245
}
245246
}
246247
}
@@ -251,8 +252,10 @@ impl<'h, const CANONICAL: bool, H: KmerHasher> Builder<'h, CANONICAL, H, ()> {
251252
sk_pos: &'o2 mut Vec<u32>,
252253
) -> Builder<'h, CANONICAL, H, &'o2 mut Vec<u32>> {
253254
Builder {
255+
k: self.k,
256+
w: self.w,
257+
hasher: self.hasher,
254258
sk_pos: sk_pos,
255-
..*self
256259
}
257260
}
258261
}

0 commit comments

Comments
 (0)