Skip to content

Commit

Permalink
make Clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jdidion committed Sep 12, 2023
1 parent 8d9c132 commit 937827f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fqcv-lib/src/align/aligners/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl Options {
jump_score_same_contig_and_strand,
jump_score_same_contig_opposite_strand,
jump_score_inter_contig,
match_params.clone(),
match_params,
)
.set_xclip_prefix(xclip_prefix)
.set_xclip_suffix(xclip_suffix)
Expand Down Expand Up @@ -189,7 +189,7 @@ impl Builder {
true,
&target_seq.fwd,
opts.circular,
multi_contig_scoring.clone(),
multi_contig_scoring,
);
}
if opts.double_strand {
Expand All @@ -199,7 +199,7 @@ impl Builder {
false,
&target_seq.revcomp,
opts.circular,
multi_contig_scoring.clone(),
multi_contig_scoring,
);
}
}
Expand Down
4 changes: 4 additions & 0 deletions fqcv-lib/src/util/target_seq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ impl TargetSeq {
self.fwd.len()
}

pub fn is_empty(&self) -> bool {
self.fwd.len() == 0
}

/// Creates a new `TargetHash` with the given k-mer size.
pub fn build_target_hash(&self, k: usize) -> TargetHash {
TargetHash {
Expand Down

0 comments on commit 937827f

Please sign in to comment.