diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2019-08-21 08:32:35 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2019-08-21 08:32:35 +0200 |
commit | 74f593bb27b19c8d021918a46a6447a80e25f828 (patch) | |
tree | 8fe70a874bbf7506518d7356f0738fa297d6bca8 /src/json.rs | |
parent | e44b2a312a5ffa85933325b3b88c56de7143f710 (diff) |
Tweaking config experimentally
Diffstat (limited to 'src/json.rs')
-rw-r--r-- | src/json.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.rs b/src/json.rs index fc6ba82..a83f102 100644 --- a/src/json.rs +++ b/src/json.rs @@ -6,7 +6,7 @@ use std::path::Path; use serde::{Deserialize, Serialize}; use serde_json; -pub fn read_state_from_json_file(filename: &Path) -> Result<State, Box<Error>> { +pub fn read_state_from_json_file(filename: &Path) -> Result<State, Box<dyn Error>> { let mut file = File::open(filename)?; let mut content = String::new(); file.read_to_string(&mut content)?; |