From f613159cbadc57aa79a2bc9925514feab0c61b36 Mon Sep 17 00:00:00 2001 From: Yashasvi Chaudhary Date: Tue, 2 Apr 2024 15:55:06 +0530 Subject: [PATCH] clippy:partialeq_to_none (#31972) --- components/script/dom/windowproxy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/script/dom/windowproxy.rs b/components/script/dom/windowproxy.rs index 905368d0263..a8c32bb11a9 100644 --- a/components/script/dom/windowproxy.rs +++ b/components/script/dom/windowproxy.rs @@ -766,7 +766,7 @@ fn tokenize_open_features(features: DOMString) -> IndexMap { let mut cur = iter.next(); // Step 3 - while cur != None { + while cur.is_some() { // Step 3.1 & 3.2 let mut name = String::new(); let mut value = String::new();