Skip to content

Commit 03163a5

Browse files
committed
chore: remove unused code macro
1 parent 9c2a6bc commit 03163a5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/commands/grep/patterns.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use anyhow::Result;
22

33
/// A pattern with an optional name (from FASTA headers).
4-
#[derive(Clone)]
4+
#[derive(Clone, Debug, PartialEq, Eq)]
55
pub struct Pattern {
66
pub name: Option<String>,
77
pub sequence: Vec<u8>,
@@ -15,7 +15,7 @@ impl Pattern {
1515
}
1616

1717
/// A collection of patterns with convenience methods for type conversions.
18-
#[derive(Clone)]
18+
#[derive(Clone, Debug, PartialEq, Eq)]
1919
pub struct PatternCollection(pub Vec<Pattern>);
2020
impl PatternCollection {
2121
pub fn bytes(&self) -> Vec<Vec<u8>> {
@@ -43,7 +43,6 @@ impl PatternCollection {
4343
self.0.len()
4444
}
4545

46-
#[allow(dead_code)]
4746
pub fn is_empty(&self) -> bool {
4847
self.0.is_empty()
4948
}

0 commit comments

Comments
 (0)