From e9634eae716cb83364ba472a58f1b1a958996658 Mon Sep 17 00:00:00 2001 From: Hristo Venev Date: Tue, 19 Mar 2019 10:59:14 +0200 Subject: rustfmt --- src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 14018e8..088d68e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -200,8 +200,8 @@ fn fetch_source(url: &str) -> io::Result { } fn load_config(path: &str) -> io::Result { - use toml; use std::fs; + use toml; let mut data = String::new(); { @@ -210,9 +210,8 @@ fn load_config(path: &str) -> io::Result { config_file.read_to_string(&mut data)?; } let mut de = toml::Deserializer::new(&data); - serde::Deserialize::deserialize(&mut de).map_err(|e| { - io::Error::new(io::ErrorKind::InvalidData, e) - }) + serde::Deserialize::deserialize(&mut de) + .map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e)) } fn main() { -- cgit