Skip to content

Commit

Permalink
fix: correct error clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
natir committed Jun 17, 2024
1 parent a5f91b8 commit 3d0dea8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/format/gff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@ impl format::Format for Gff {

// start
let start = rng.gen_range::<i32, core::ops::Range<i32>>(self.position.clone().into());
output.write_all(&start.to_string().as_bytes().to_vec())?;
output.write_all(start.to_string().as_bytes())?;
output.write_all(b"\t")?;

// end
let end: i32 =
start + rng.gen_range::<i32, core::ops::Range<i32>>(self.length.clone().into());
output.write_all(&end.to_string().as_bytes().to_vec())?;
output.write_all(end.to_string().as_bytes())?;
output.write_all(b"\t")?;

// score
Expand Down

0 comments on commit 3d0dea8

Please sign in to comment.