diff --git a/src/bgzf/mod.rs b/src/bgzf/mod.rs index 69fae4ed1..06d6ee7a1 100644 --- a/src/bgzf/mod.rs +++ b/src/bgzf/mod.rs @@ -253,13 +253,8 @@ impl Writer { impl std::io::Write for Writer { fn write(&mut self, buf: &[u8]) -> std::io::Result { - let nbytes = unsafe { - htslib::bgzf_write( - self.inner, - buf.as_ptr() as *mut libc::c_void, - buf.len(), - ) - }; + let nbytes = + unsafe { htslib::bgzf_write(self.inner, buf.as_ptr() as *mut libc::c_void, buf.len()) }; if nbytes < 0 { Err(std::io::Error::new( std::io::ErrorKind::Other,