From 92a13bac9289fd00a6fa2c70129490fa22ef0661 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sat, 25 Dec 2021 15:36:23 +0100 Subject: add init-project command --- planetwars-rules/src/config.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'planetwars-rules/src') diff --git a/planetwars-rules/src/config.rs b/planetwars-rules/src/config.rs index 32c23f5..57c77eb 100644 --- a/planetwars-rules/src/config.rs +++ b/planetwars-rules/src/config.rs @@ -1,6 +1,7 @@ use std::fs::File; use std::io; use std::io::Read; +use std::path::PathBuf; use serde_json; @@ -9,7 +10,7 @@ use super::rules::*; #[derive(Debug, Clone, Serialize, Deserialize)] pub struct Config { - pub map_file: String, + pub map_file: PathBuf, pub max_turns: u64, } -- cgit v1.2.3