Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Oct 14, 2024
1 parent 0eeca48 commit cd0a209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/src/index/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ use crate::selection::Selection;
use crate::signature::SigsTrait;
use crate::sketch::minhash::KmerMinHash;
use crate::storage::SigStore;
use crate::Result;
use crate::Error::CannotUpsampleScaled;
use crate::Result;

#[derive(TypedBuilder, CopyGetters, Getters, Setters, Serialize, Deserialize, Debug, PartialEq)]
pub struct GatherResult {
Expand Down Expand Up @@ -223,7 +223,7 @@ pub fn calculate_gather_stats(
let match_mh = match_sig.minhash().expect("cannot retrieve sketch");

// it's ok to downsample match, but query is often big and repeated,
// so we do not allow downsampling here.
// so we do not allow downsampling of query in this function.
if match_mh.scaled() > query_foo.scaled() {
return Err(CannotUpsampleScaled);

Check warning on line 228 in src/core/src/index/mod.rs

View check run for this annotation

Codecov / codecov/patch

src/core/src/index/mod.rs#L228

Added line #L228 was not covered by tests
}
Expand Down

0 comments on commit cd0a209

Please sign in to comment.