Skip to content

Commit

Permalink
fix rust ci
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Feb 18, 2023
1 parent 22f9b7d commit 3d5b5b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ jobs:
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v1
with:
crate-name: sourmash version-tag-prefix: r
crate-name: sourmash
version-tag-prefix: r

- name: Make sure we can publish the sourmash crate
uses: actions-rs/cargo@v1
Expand Down
4 changes: 4 additions & 0 deletions src/core/src/sketch/minhash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ pub trait AbundMinHashOps: MinHashOps {
// TODO(lirber): bring back compat check once method sig changes
//self.check_compatible(other)?;

if !self.track_abundance() || !other.track_abundance() {
return Err(Error::NeedsAbundanceTracking);
}

// TODO: check which one is smaller, swap around if needed
// TODO(lirber): use iters here, instead of allocating new vecs!
let abunds = self.to_vec_abunds();
Expand Down

0 comments on commit 3d5b5b2

Please sign in to comment.