Created
May 16, 2020 12:04
-
-
Save DarkFenX/202ae6e764b006d2d198c07c45e9562a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn _read_json(&self, addr: JsonAddress) -> JsonResult<Value> { | |
let bytes = self._read_file(addr)?; | |
let res = serde_json::from_slice(&bytes); | |
let ok = match res { | |
Ok(v) => v, | |
Err(e) => return Err(JsonError::ParseError(format!("{}", e))), | |
}; | |
ok | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment