From e0eee2b14ebdc4727cf6e60a1e8af6ddec24c2f4 Mon Sep 17 00:00:00 2001 From: Iago Garrido Date: Tue, 12 Nov 2019 15:40:21 +0100 Subject: remove unnecesary explicit lifetime --- src/tiling.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tiling.rs b/src/tiling.rs index 139af24..9684302 100644 --- a/src/tiling.rs +++ b/src/tiling.rs @@ -2,7 +2,7 @@ pub struct TileGrid { grid: Vec> } -impl<'a> TileGrid { +impl TileGrid { pub fn new(xsize: usize, ysize: usize) -> TileGrid { let mut grid = TileGrid { grid: Vec::with_capacity(ysize) @@ -31,7 +31,7 @@ impl<'a> TileGrid { }) } - pub fn raw_data(&'a self) -> &'a Vec> { + pub fn raw_data(& self) -> & Vec> { &self.grid } } -- cgit v1.2.3