1
0
mirror of https://github.com/jht5945/rust_util.git synced 2025-12-27 15:40:03 +08:00

fix: feature use_serde

This commit is contained in:
2020-09-10 00:23:04 +08:00
parent 0576c23c5a
commit 3db1fb8130
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "rust_util"
version = "0.6.8"
version = "0.6.9"
authors = ["Hatter Jiang <jht5945@gmail.com>"]
edition = "2018"
description = "Hatter's Rust Util"

View File

@@ -124,7 +124,7 @@ pub fn read_json_config<T>(config: Option<String>, files: &[String]) -> XResult<
match config_path_buf_opt {
None => Ok(None),
Some(config_path_buf) => {
information!("Read config: {}", config_path_buf);
// information!("Read config: {}", config_path_buf);
let config_content = fs::read_to_string(config_path_buf)?;
Ok(Some((config_path_buf, serde_json::from_str(&config_content)?)))
}