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:
Narfinger
2026-04-17 21:55:17 +02:00
committed by GitHub
parent 62f9971a87
commit a908081352
10 changed files with 51 additions and 72 deletions

View File

@@ -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
},