Skip to content

Commit

Permalink
vcf/async/reader: Import std::str
Browse files Browse the repository at this point in the history
  • Loading branch information
zaeleus committed Aug 31, 2023
1 parent ed6ff71 commit 20d498e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions noodles-vcf/src/async/reader.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
mod header;
mod query;

use std::str;

use futures::{stream, Stream};
use noodles_bgzf as bgzf;
use noodles_core::Region;
Expand Down Expand Up @@ -426,8 +428,7 @@ where
None => (src, src.len()),
};

let s =
std::str::from_utf8(buf).map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e))?;
let s = str::from_utf8(buf).map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e))?;
dst.push_str(s);

len += n;
Expand Down

0 comments on commit 20d498e

Please sign in to comment.