Skip to content

Commit

Permalink
Remove extra unneeded trim_end
Browse files Browse the repository at this point in the history
  • Loading branch information
jackh726 committed May 18, 2024
1 parent be13c51 commit cfe30f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bigtools/src/bed/bedparser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use crate::bbi::{BedEntry, Value};
use crate::utils::streaming_linereader::StreamingLineReader;

pub fn parse_bed<'a>(s: &'a str) -> Option<Result<(&'a str, BedEntry), BedValueError>> {
let mut split = s.trim_end().splitn(4, '\t');
let mut split = s.splitn(4, '\t');
let chrom = match split.next() {
Some(chrom) => chrom,
None => return None,
Expand Down Expand Up @@ -47,7 +47,7 @@ pub fn parse_bed<'a>(s: &'a str) -> Option<Result<(&'a str, BedEntry), BedValueE
}

pub fn parse_bedgraph<'a>(s: &'a str) -> Option<Result<(&'a str, Value), BedValueError>> {
let mut split = s.trim_end().splitn(5, '\t');
let mut split = s.splitn(5, '\t');
let chrom = match split.next() {
Some(chrom) => chrom,
None => return None,
Expand Down

0 comments on commit cfe30f3

Please sign in to comment.