Clipplease
This commit is contained in:
@@ -72,7 +72,6 @@ mod test {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_cleaning_command_name() {
|
fn test_cleaning_command_name() {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
|
|||||||
@@ -98,10 +98,9 @@ struct Txn<'t> {
|
|||||||
|
|
||||||
impl<'t> Txn<'t> {
|
impl<'t> Txn<'t> {
|
||||||
fn get_txn(&mut self) -> Result<rusqlite::Transaction, SqliteError> {
|
fn get_txn(&mut self) -> Result<rusqlite::Transaction, SqliteError> {
|
||||||
Ok(self
|
self.con
|
||||||
.con
|
|
||||||
.transaction()
|
.transaction()
|
||||||
.map_err(|_e| SqliteError::CreateTransactionFailed)?)
|
.map_err(|_e| SqliteError::CreateTransactionFailed)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user