mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Remove the 'a lifetime from Root.
It does not add any safety, as the reference is constructed from a raw pointer without limiting the lifetime in any way.
This commit is contained in:
parent
111a196e9d
commit
95ec20bd97
4 changed files with 27 additions and 27 deletions
|
@ -471,7 +471,7 @@ impl<T: Reflectable+IDLInterface> FromJSValConvertible<()> for JS<T> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, 'b, T: Reflectable> ToJSValConvertible for Root<'a, 'b, T> {
|
||||
impl<'b, T: Reflectable> ToJSValConvertible for Root<'b, T> {
|
||||
fn to_jsval(&self, cx: *mut JSContext) -> JSVal {
|
||||
self.reflector().to_jsval(cx)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue