Skip to content

Commit

Permalink
Make sequence private
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris7 committed Aug 27, 2024
1 parent 8f067cb commit 0eb0d0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/models/block_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ impl BlockGroup {
blocks.push(GroupBlock {
id: block_index,
sequence_hash: hash.clone(),
sequence: sequence.sequence.clone(),
sequence: sequence.get_sequence(None, None),
start: 0,
end: sequence.length,
});
Expand Down Expand Up @@ -579,7 +579,7 @@ mod tests {
let deletion = NewBlock {
id: 0,
sequence: deletion_sequence.clone(),
block_sequence: deletion_sequence.sequence.clone(),
block_sequence: deletion_sequence.get_sequence(None, None),
sequence_start: 0,
sequence_end: 0,
path_start: 19,
Expand Down Expand Up @@ -862,7 +862,7 @@ mod tests {
let deletion = NewBlock {
id: 0,
sequence: deletion_sequence.clone(),
block_sequence: deletion_sequence.sequence.clone(),
block_sequence: deletion_sequence.get_sequence(None, None),
sequence_start: 0,
sequence_end: 0,
path_start: 19,
Expand Down
2 changes: 1 addition & 1 deletion src/models/sequence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::{fs, path::PathBuf, str};
pub struct Sequence {
pub hash: String,
pub sequence_type: String,
pub sequence: String,
sequence: String,
// these 2 fields are only relevant when the sequence is stored externally
pub name: String,
pub file_path: String,
Expand Down

0 comments on commit 0eb0d0a

Please sign in to comment.