aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIago Garrido <iago086@gmail.com>2019-11-12 15:40:21 +0100
committerIago Garrido <iago086@gmail.com>2019-11-12 15:40:21 +0100
commite0eee2b14ebdc4727cf6e60a1e8af6ddec24c2f4 (patch)
tree20b3447049265778fbfb9fe5876f9aa4eda0214e
parent5ae798266d00c724b36f22969fe9f990f1cc9098 (diff)
remove unnecesary explicit lifetime
-rw-r--r--src/tiling.rs4
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
}
}