mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fix: Add missing transmute annotations in Castable trait (#33729)
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
parent
e8e51b1373
commit
bc84dfbae5
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ pub trait Castable: IDLInterface + DomObject + Sized {
|
|||
T: Castable,
|
||||
Self: DerivedFrom<T>,
|
||||
{
|
||||
unsafe { mem::transmute(self) }
|
||||
unsafe { mem::transmute::<&Self, &T>(self) }
|
||||
}
|
||||
|
||||
/// Cast a DOM object downwards to one of the interfaces it might implement.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue