From 77d7052131a5c5c7b58970532e933642e5b889d3 Mon Sep 17 00:00:00 2001 From: Johannes Koester Date: Fri, 10 May 2024 11:09:35 +0200 Subject: [PATCH] fmt --- src/bgzf/mod.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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,