diff options
author | Justin Worthe <justin.worthe@gmail.com> | 2017-05-14 17:10:26 +0200 |
---|---|---|
committer | Justin Worthe <justin.worthe@gmail.com> | 2017-05-14 17:10:26 +0200 |
commit | 25a551316e27f4cc52c160d099db9cc3673b3421 (patch) | |
tree | ac36584ec047dfefe54fcc56bb189a05c02b98f5 /src/files.rs | |
parent | 05ccf5572b39fe254c7b0464cc78a1b623f732c7 (diff) |
Added documentation of json state types
Diffstat (limited to 'src/files.rs')
-rw-r--r-- | src/files.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/files.rs b/src/files.rs index 99dca8c..7f3daed 100644 --- a/src/files.rs +++ b/src/files.rs @@ -5,9 +5,10 @@ use std::path::PathBuf; use actions::*; +const STATE_FILE: &'static str = "state.json"; + const COMMAND_FILE: &'static str = "command.txt"; const PLACE_FILE: &'static str = "place.txt"; -const STATE_FILE: &'static str = "state.json"; pub fn read_file(working_dir: &PathBuf) -> Result<json::JsonValue, String> { let state_path = working_dir.join(STATE_FILE); |