Skip to content

Commit

Permalink
Merge pull request #1573 from nextstrain/fix/gff-reader-comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov authored Feb 24, 2025
2 parents c9c28ad + 6fb2260 commit f2b4dc2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/nextclade/src/features/feature_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ fn read_gff3_feature_tree_str(content: impl AsRef<str>) -> Result<Vec<SequenceRe
.tuple_windows()
.map(|(content_begin, content_end)| {
#[allow(clippy::string_slice)]
let content = &content[content_begin..content_end - 1];
let content = &content[content_begin..content_end];
(content, content_begin, content_end)
})
.collect_vec()
Expand All @@ -88,8 +88,6 @@ fn read_gff3_feature_tree_str(content: impl AsRef<str>) -> Result<Vec<SequenceRe
.into_iter()
.enumerate()
.map(|(index,(content, content_begin, _))| {
let content = content.trim();

// Extract '##sequence-region' header line
let header_line = content
.lines()
Expand Down

0 comments on commit f2b4dc2

Please sign in to comment.