diff options
| author | Arne Dußin | 2021-01-06 22:47:34 +0100 |
|---|---|---|
| committer | Arne Dußin | 2021-01-06 22:47:34 +0100 |
| commit | 0eada0bdcb36a9907c6c928aa707ed6bef03c02f (patch) | |
| tree | d686f1d7c41695d4e7bac9c190377bd634c36250 /src/map/data.rs | |
| parent | 61d255a420c9d977b46670e7fa9e7735d2acf819 (diff) | |
| download | graf_karto-0eada0bdcb36a9907c6c928aa707ed6bef03c02f.tar.gz graf_karto-0eada0bdcb36a9907c6c928aa707ed6bef03c02f.zip | |
Add loading capabilities back
Diffstat (limited to 'src/map/data.rs')
| -rw-r--r-- | src/map/data.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<P: AsRef<Path>>(&mut self, path: P) -> io::Result<Self> { + pub fn load_from_file<P: AsRef<Path>>(path: P) -> io::Result<Self> { let file = File::open(&path)?; let data: Self = match from_reader(file) { Ok(data) => data, |
