Run rustfmt

This commit is contained in:
Ivan Ukhov 2020-06-10 20:20:59 +02:00
parent 661e469172
commit acc777028f

View File

@ -112,18 +112,14 @@ impl Connection {
/// recent INSERT, UPDATE, or DELETE statement. /// recent INSERT, UPDATE, or DELETE statement.
#[inline] #[inline]
pub fn changes(&self) -> usize { pub fn changes(&self) -> usize {
unsafe { unsafe { ffi::sqlite3_changes(self.raw) as usize }
ffi::sqlite3_changes(self.raw) as usize
}
} }
/// Return the total number of rows inserted, updated, and deleted by all /// Return the total number of rows inserted, updated, and deleted by all
/// INSERT, UPDATE, and DELETE statements since the connection was opened. /// INSERT, UPDATE, and DELETE statements since the connection was opened.
#[inline] #[inline]
pub fn total_changes(&self) -> usize { pub fn total_changes(&self) -> usize {
unsafe { unsafe { ffi::sqlite3_total_changes(self.raw) as usize }
ffi::sqlite3_total_changes(self.raw) as usize
}
} }
/// Set a callback for handling busy events. /// Set a callback for handling busy events.