Skip to content

Commit

Permalink
Fix elided lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
nsyzrantsev committed Sep 2, 2024
1 parent 8187319 commit d70c7e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion barkit-extract/src/pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ impl BarcodeRegex {
/// .as_bytes()
/// );
/// ```
pub fn get_captures<'a>(&'a self, read_seq: &'a [u8]) -> Result<Captures, Error> {
pub fn get_captures<'a>(&self, read_seq: &'a [u8]) -> Result<Captures<'a>, Error> {
match self.regex.captures(read_seq) {
Some(capture) => Ok(capture),
None => Err(Error::PatternNotMatched),

Check warning on line 228 in barkit-extract/src/pattern.rs

View check run for this annotation

Codecov / codecov/patch

barkit-extract/src/pattern.rs#L225-L228

Added lines #L225 - L228 were not covered by tests
Expand Down

0 comments on commit d70c7e0

Please sign in to comment.