make new rustc happy

This commit is contained in:
Sebastien Bourdeauducq 2019-10-08 20:10:06 +08:00
parent f702c46a28
commit 3fc91befca

View File

@ -23,7 +23,7 @@ struct Config {
refpll_kp: i64 refpll_kp: i64
} }
fn read_config_from_file<P: AsRef<Path>>(path: P) -> Result<Config, Box<Error>> { fn read_config_from_file<P: AsRef<Path>>(path: P) -> Result<Config, Box<dyn Error>> {
let file = File::open(path)?; let file = File::open(path)?;
let reader = BufReader::new(file); let reader = BufReader::new(file);
let u = serde_json::from_reader(reader)?; let u = serde_json::from_reader(reader)?;