Skip to content

Commit c721f41

Browse files
committed
Update htslib support to new MmIdx
1 parent 6ea99b6 commit c721f41

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ needletail = { version = "0.6", default-features = false}
5252

5353
[features]
5454
default = ["map-file"]
55-
map-file = ["needletail"] #, "simdutf8"]
55+
map-file = ["needletail"]
5656
htslib = ['rust-htslib']
5757
simde = ["minimap2-sys/simde"]
5858
zlib-ng = ["minimap2-sys/zlib-ng"]

src/htslib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,8 @@ pub struct SeqMetaData {
303303
pub is_alt: bool,
304304
}
305305

306-
#[derive(Debug)]
307306
pub struct MMIndex {
308-
pub inner: Arc<*mut mm_ffi::mm_idx_t>,
307+
pub inner: Arc<super::MmIdx>,
309308
}
310309

311310
impl MMIndex {
@@ -345,8 +344,7 @@ impl MMIndex {
345344
impl From<&Aligner<Built>> for MMIndex {
346345
fn from(aligner: &Aligner<Built>) -> Self {
347346
MMIndex {
348-
// inner: aligner.idx.unwrap(),
349-
inner: std::sync::Arc::clone(&aligner.idx.as_ref().unwrap()),
347+
inner: std::sync::Arc::clone(aligner.idx.as_ref().unwrap()),
350348
}
351349
}
352350
}

0 commit comments

Comments
 (0)