diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2015-09-04 08:55:51 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-09-04 08:55:51 +0530 |
commit | 54c036cd66f6c9a59610fb804d57a63ab7aad19f (patch) | |
tree | 08d14c8c8e0ed17ca9da314e22b9ac32d73aaf00 /components/layout/table_cell.rs | |
parent | 35dd1816a9ea90484ae91ecce3a3e7eb094227c1 (diff) | |
download | servo-54c036cd66f6c9a59610fb804d57a63ab7aad19f.tar.gz servo-54c036cd66f6c9a59610fb804d57a63ab7aad19f.zip |
Elide most 'a lifetimes
Diffstat (limited to 'components/layout/table_cell.rs')
-rw-r--r-- | components/layout/table_cell.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/layout/table_cell.rs b/components/layout/table_cell.rs index fcb54b0d9ab..f0f1495d8bb 100644 --- a/components/layout/table_cell.rs +++ b/components/layout/table_cell.rs @@ -59,11 +59,11 @@ impl TableCellFlow { } } - pub fn fragment<'a>(&'a mut self) -> &'a Fragment { + pub fn fragment(&mut self) -> &Fragment { &self.block_flow.fragment } - pub fn mut_fragment<'a>(&'a mut self) -> &'a mut Fragment { + pub fn mut_fragment(&mut self) -> &mut Fragment { &mut self.block_flow.fragment } @@ -84,15 +84,15 @@ impl Flow for TableCellFlow { FlowClass::TableCell } - fn as_mut_table_cell<'a>(&'a mut self) -> &'a mut TableCellFlow { + fn as_mut_table_cell(&mut self) -> &mut TableCellFlow { self } - fn as_table_cell<'a>(&'a self) -> &'a TableCellFlow { + fn as_table_cell(&self) -> &TableCellFlow { self } - fn as_mut_block<'a>(&'a mut self) -> &'a mut BlockFlow { + fn as_mut_block(&mut self) -> &mut BlockFlow { &mut self.block_flow } |