mirror of
https://github.com/servo/servo.git
synced 2025-06-10 01:23:13 +00:00
Use the correct lifetime bounds for FooCast::from_actual.
This commit is contained in:
parent
1f53d30f85
commit
ca21675359
1 changed files with 1 additions and 1 deletions
|
@ -5373,7 +5373,7 @@ impl ${name}Cast {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub fn from_actual<'a, T: ${fromBound}+Reflectable>(derived: &T) -> &'a ${name} {
|
pub fn from_actual<'a, T: ${fromBound}+Reflectable>(derived: &'a T) -> &'a ${name} {
|
||||||
unsafe { mem::transmute(derived) }
|
unsafe { mem::transmute(derived) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue