cargo fmt
This commit is contained in:
parent
20752497b3
commit
837a1e1ac5
|
@ -3,8 +3,8 @@
|
|||
* configuration file
|
||||
*/
|
||||
use serde::de::{Deserialize, Deserializer};
|
||||
use std::str::FromStr;
|
||||
use std::collections::HashMap;
|
||||
use std::str::FromStr;
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
|
@ -95,7 +95,8 @@ mod tests {
|
|||
fn test_deserialize_example_config() {
|
||||
let mut f = File::open("urci.yml").unwrap();
|
||||
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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue