diff --git a/libsql/src/local/connection.rs b/libsql/src/local/connection.rs index 8e73e7efb1..baa44cef4d 100644 --- a/libsql/src/local/connection.rs +++ b/libsql/src/local/connection.rs @@ -506,13 +506,13 @@ impl Connection { } pub(crate) fn wal_insert_frame(&self, frame: &[u8]) -> Result<()> { - let rc = unsafe { + let rc = unsafe { libsql_sys::ffi::libsql_wal_insert_frame( self.handle(), frame.len() as u32, frame.as_ptr() as *mut std::ffi::c_void, - 0 - ) + 0, + ) }; if rc != 0 { return Err(crate::errors::Error::SqliteFailure( diff --git a/libsql/src/sync.rs b/libsql/src/sync.rs index a341b33653..f876295f95 100644 --- a/libsql/src/sync.rs +++ b/libsql/src/sync.rs @@ -244,8 +244,7 @@ impl SyncContext { None => {} } - let req = req.body(Body::empty()) - .expect("valid request"); + let req = req.body(Body::empty()).expect("valid request"); let res = self .client