mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
chore: Remove some clippy complains for 1.95 (#44276)
This removes some complains that clippy will have in 1.95. As this is mostly just match guards, it doesn't update MSRV. Testing: This is equivalent exchanges, so current WPT would find anything. --------- Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
This commit is contained in:
@@ -901,11 +901,10 @@ impl IndexedDBManager {
|
||||
Some(IndexedDBTxnMode::Readonly) => {
|
||||
db.running_readonly.remove(&txn);
|
||||
},
|
||||
Some(_) => {
|
||||
if db.running_readwrite == Some(txn) {
|
||||
db.running_readwrite = None;
|
||||
}
|
||||
Some(_) if db.running_readwrite == Some(txn) => {
|
||||
db.running_readwrite = None;
|
||||
},
|
||||
Some(_) => {},
|
||||
None => {
|
||||
// txn might have been aborted/removed; nothing to clear
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user