Remove the 'b 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:
Ms2ger 2015-01-01 12:20:31 +01:00
parent 95ec20bd97
commit 1290c18794
4 changed files with 27 additions and 27 deletions

View file

@ -471,7 +471,7 @@ impl<T: Reflectable+IDLInterface> FromJSValConvertible<()> for JS<T> {
}
}
impl<'b, T: Reflectable> ToJSValConvertible for Root<'b, T> {
impl<T: Reflectable> ToJSValConvertible for Root<T> {
fn to_jsval(&self, cx: *mut JSContext) -> JSVal {
self.reflector().to_jsval(cx)
}