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 9a9b3d1 commit 77d7052
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/bgzf/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,8 @@ impl Writer {

impl std::io::Write for Writer {
fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
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,
Expand Down

0 comments on commit 77d7052

Please sign in to comment.