summaryrefslogtreecommitdiff
path: root/src/json.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/json.rs')
-rw-r--r--src/json.rs2
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)?;