Skip to content

Commit

Permalink
Follow suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
dkhofer committed Aug 29, 2024
1 parent 8a31631 commit 9ea0369
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl<'a> BlockGroupCache<'_> {
block_group_cache.conn,
collection_name,
sample_name,
name.clone(),
&name.clone(),
);
block_group_cache
.cache
Expand Down Expand Up @@ -216,8 +216,10 @@ impl<'a> SequenceCache<'_> {
.sequence_type("DNA")
.sequence(&sequence)
.save(sequence_cache.conn);
let new_sequence =
Sequence::sequence_from_hash(sequence_cache.conn, &new_sequence_hash).unwrap();
let new_sequence = NewSequence::new()
.sequence_type(sequence_type)
.sequence(&sequence)
.build();

sequence_cache
.cache
Expand Down
2 changes: 1 addition & 1 deletion src/models/block_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl BlockGroup {
}
}
}
let new_bg_id = BlockGroup::create(conn, collection_name, Some(sample_name), &group_name);
let new_bg_id = BlockGroup::create(conn, collection_name, Some(sample_name), group_name);

// clone parent blocks/edges/path
BlockGroup::clone(conn, bg_id, new_bg_id.id);
Expand Down

0 comments on commit 9ea0369

Please sign in to comment.