mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Elide most 'b lifetimes
This commit is contained in:
parent
54c036cd66
commit
2e02ea38fc
4 changed files with 6 additions and 6 deletions
|
@ -204,7 +204,7 @@ impl<'a> Reflectable for GlobalRef<'a> {
|
|||
impl GlobalRoot {
|
||||
/// Obtain a safe reference to the global object that cannot outlive the
|
||||
/// lifetime of this root.
|
||||
pub fn r<'c>(&'c self) -> GlobalRef<'c> {
|
||||
pub fn r(&self) -> GlobalRef {
|
||||
match *self {
|
||||
GlobalRoot::Window(ref window) => GlobalRef::Window(window.r()),
|
||||
GlobalRoot::Worker(ref worker) => GlobalRef::Worker(worker.r()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue