Skip to content

Commit

Permalink
fix two rs errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Oct 13, 2024
1 parent e4e5555 commit ceaea39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/core/src/collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ mod test {
use crate::prelude::Select;
use crate::selection::Selection;
use crate::signature::Signature;
#[cfg(all(feature = "branchwater", not(target_arch = "wasm32")))]
use crate::Result;

#[test]
fn sigstore_selection_with_downsample() {
Expand Down
2 changes: 1 addition & 1 deletion src/core/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ impl TryInto<KmerMinHash> for Signature {
})
.ok_or_else(|| Error::NoMinHashFound),
0 => Err(Error::EmptySignature),
2.. => Err(Error::MultipleSketchesFound),
_ => Err(Error::MultipleSketchesFound),

Check warning on line 907 in src/core/src/signature.rs

View check run for this annotation

Codecov / codecov/patch

src/core/src/signature.rs#L905-L907

Added lines #L905 - L907 were not covered by tests
}
}
}
Expand Down

0 comments on commit ceaea39

Please sign in to comment.