Skip to content

Commit

Permalink
Init raw on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
estk committed Apr 4, 2020
1 parent 3603e10 commit 1031ba6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,6 @@ mod test {

#[test]
#[cfg(all(feature = "config_parsing", feature = "json_format"))]
#[cfg(target_os = "linux")]
fn init_from_raw_config() {
let dir = tempfile::tempdir().unwrap();
let path = dir.path().join("append.log");
Expand All @@ -505,7 +504,7 @@ mod test {
}
},
});
let config = serde_json::from_str::<config_parsing::RawConfig>(&cfg).unwrap();
let config = serde_json::from_str::<config_parsing::RawConfig>(&cfg.to_string()).unwrap();
if let Err(e) = init_raw_config(config) {
panic!(e);
}
Expand Down

0 comments on commit 1031ba6

Please sign in to comment.