make new rustc happy

master
Sebastien Bourdeauducq 2019-10-08 20:10:06 +08:00
parent f702c46a28
commit 3fc91befca
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ struct Config {
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 reader = BufReader::new(file);
let u = serde_json::from_reader(reader)?;