From 0eada0bdcb36a9907c6c928aa707ed6bef03c02f Mon Sep 17 00:00:00 2001 From: Arne Dußin Date: Wed, 6 Jan 2021 22:47:34 +0100 Subject: Add loading capabilities back --- src/map/data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/data.rs') diff --git a/src/map/data.rs b/src/map/data.rs index b7719cd..f7ec484 100644 --- a/src/map/data.rs +++ b/src/map/data.rs @@ -65,7 +65,7 @@ impl MapData { } /// Load the map data from a file. Fails if the file does not exist or cannot be correctly parsed. - pub fn load_from_file>(&mut self, path: P) -> io::Result { + pub fn load_from_file>(path: P) -> io::Result { let file = File::open(&path)?; let data: Self = match from_reader(file) { Ok(data) => data, -- cgit v1.2.3-70-g09d2