mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 08:55:40 +01:00
clippy
This commit is contained in:
@@ -1221,7 +1221,7 @@ impl Statement {
|
||||
.rollback(schema_did_change, &self.program.connection)
|
||||
{
|
||||
// Let's panic for now as we don't want to leave state in a bad state.
|
||||
panic!("rollback failed: {:?}", e);
|
||||
panic!("rollback failed: {e:?}");
|
||||
}
|
||||
let end_tx_res =
|
||||
self.pager
|
||||
@@ -1232,8 +1232,7 @@ impl Statement {
|
||||
.set(TransactionState::None);
|
||||
assert!(
|
||||
matches!(end_tx_res, IOResult::Done(_)),
|
||||
"end_tx should not return IO as it should just end txn without flushing anything. Got {:?}",
|
||||
end_tx_res
|
||||
"end_tx should not return IO as it should just end txn without flushing anything. Got {end_tx_res:?}"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1016,8 +1016,7 @@ impl Pager {
|
||||
let page_key = PageCacheKey::new(page_id);
|
||||
let page = cache.get(&page_key).unwrap_or_else(|| {
|
||||
panic!(
|
||||
"we somehow added a page to dirty list but we didn't mark it as dirty, causing cache to drop it. page={}",
|
||||
page_id
|
||||
"we somehow added a page to dirty list but we didn't mark it as dirty, causing cache to drop it. page={page_id}"
|
||||
)
|
||||
});
|
||||
let page_type = page.get().contents.as_ref().unwrap().maybe_page_type();
|
||||
|
||||
Reference in New Issue
Block a user