From 609a6ef0f46f2777c4c3edf0dabef5d233f0044a Mon Sep 17 00:00:00 2001 From: chickenleaf Date: Tue, 8 Oct 2024 21:32:19 +0530 Subject: [PATCH] fix(clippy): add missing annotations for transmute usage in root.rs (#33728) Signed-off-by: L Ashwin B --- components/script/dom/bindings/root.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/script/dom/bindings/root.rs b/components/script/dom/bindings/root.rs index 0bbf4e67a98..8f2685bd4fe 100644 --- a/components/script/dom/bindings/root.rs +++ b/components/script/dom/bindings/root.rs @@ -169,7 +169,7 @@ impl DomRoot { U: Castable, T: DerivedFrom, { - unsafe { mem::transmute(root) } + unsafe { mem::transmute::, DomRoot>(root) } } /// Cast a DOM object root downwards to one of the interfaces it might implement. @@ -178,7 +178,7 @@ impl DomRoot { U: DerivedFrom, { if root.is::() { - Some(unsafe { mem::transmute(root) }) + Some(unsafe { mem::transmute::, DomRoot>(root) }) } else { None }