diff options
author | Iago Garrido <iago086@gmail.com> | 2019-11-12 15:40:21 +0100 |
---|---|---|
committer | Iago Garrido <iago086@gmail.com> | 2019-11-12 15:40:21 +0100 |
commit | e0eee2b14ebdc4727cf6e60a1e8af6ddec24c2f4 (patch) | |
tree | 20b3447049265778fbfb9fe5876f9aa4eda0214e | |
parent | 5ae798266d00c724b36f22969fe9f990f1cc9098 (diff) |
remove unnecesary explicit lifetime
-rw-r--r-- | src/tiling.rs | 4 |
1 files 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<Vec<TileType>> } -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<Vec<TileType>> { + pub fn raw_data(& self) -> & Vec<Vec<TileType>> { &self.grid } } |