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:41:39 +0100
commitecbfaa5c70cb570bbeef917acf0933b8757f835a (patch)
tree20b3447049265778fbfb9fe5876f9aa4eda0214e
parent398d23d73e147bf0b5acdf0e4c80d7130a508dcf (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
}
}