Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed May 10, 2024
1 parent 9bb53d1 commit a4f3a2d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/bgzf/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,7 @@ impl Reader {
impl std::io::Read for Reader {
fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> {
let nbytes = unsafe {
htslib::bgzf_read(
self.inner,
buf.as_mut_ptr() as *mut libc::c_void,
buf.len(),
)
htslib::bgzf_read(self.inner, buf.as_mut_ptr() as *mut libc::c_void, buf.len())
};
if nbytes < 0 {
Err(std::io::Error::new(
Expand Down

0 comments on commit a4f3a2d

Please sign in to comment.