diff --git a/coordinates/src/hex_map.rs b/coordinates/src/hex_map.rs
index 1b745ae..1291c69 100644
--- a/coordinates/src/hex_map.rs
+++ b/coordinates/src/hex_map.rs
@@ -10,7 +10,7 @@ Luminescent Dreams Tools is distributed in the hope that it will be useful, but
You should have received a copy of the GNU General Public License along with Luminescent Dreams Tools. If not, see .
*/
-use crate::hex::AxialAddr;
+use crate::{hex::AxialAddr, Error};
use nom::{
bytes::complete::tag,
character::complete::alphanumeric1,
@@ -29,10 +29,7 @@ pub struct Map {
cells: HashMap,
}
-impl + Clone> Map
-where
- String: From,
-{
+impl Map {
pub fn new_hexagonal(radius: usize) -> Map {
let cells = vec![(AxialAddr::origin(), Default::default())]
.into_iter()
@@ -56,40 +53,46 @@ where
pub fn get(&self, addr: &AxialAddr) -> Option<&A> {
self.cells.get(addr)
}
+}
- // pub fn from_file(path: PathBuf) -> Map {}
+pub fn read_file>(path: PathBuf) -> Result