cargo fmt

This commit is contained in:
R Tyler Croy 2020-08-15 14:40:55 -07:00
parent 20752497b3
commit 837a1e1ac5
1 changed files with 3 additions and 2 deletions

View File

@ -3,8 +3,8 @@
* configuration file * configuration file
*/ */
use serde::de::{Deserialize, Deserializer}; use serde::de::{Deserialize, Deserializer};
use std::str::FromStr;
use std::collections::HashMap; use std::collections::HashMap;
use std::str::FromStr;
#[derive(Debug, Deserialize)] #[derive(Debug, Deserialize)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
@ -95,7 +95,8 @@ mod tests {
fn test_deserialize_example_config() { fn test_deserialize_example_config() {
let mut f = File::open("urci.yml").unwrap(); let mut f = File::open("urci.yml").unwrap();
let mut yaml = String::new(); let mut yaml = String::new();
f.read_to_string(&mut yaml).expect("Failed to read into string"); f.read_to_string(&mut yaml)
.expect("Failed to read into string");
let _config: Config = serde_yaml::from_str(&yaml).expect("Failed to parse the yaml"); let _config: Config = serde_yaml::from_str(&yaml).expect("Failed to parse the yaml");
} }