mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
content: Replace uses of downcast
+is_some
/is_none
with is
(#33804)
* content: Replace uses of downcast+is_some/is_none with is Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * Remove ! to return correct logic Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> --------- Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
c5899e596d
commit
27b25e869b
5 changed files with 5 additions and 8 deletions
|
@ -181,7 +181,7 @@ pub fn Fetch(
|
|||
|
||||
// Step 6. If globalObject is a ServiceWorkerGlobalScope object, then set request’s
|
||||
// service-workers mode to "none".
|
||||
if global.downcast::<ServiceWorkerGlobalScope>().is_some() {
|
||||
if global.is::<ServiceWorkerGlobalScope>() {
|
||||
request_init.service_workers_mode = ServiceWorkersMode::None;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue