Skip to content

Commit

Permalink
ref: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Mar 23, 2018
1 parent 9428574 commit b6d0c9c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_protocol_v7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ fn reserialize(event: &v7::Event) -> v7::Event {
serde_json::from_str(&json).unwrap()
}


#[test]
fn test_event_default_vs_new() {
let event_new = reserialize(&v7::Event::new());
Expand Down Expand Up @@ -99,5 +98,8 @@ fn test_basic_message_event() {
event.message = Some("Hello World!".into());
event.logger = Some("root".into());
let json = serde_json::to_string(&event).unwrap();
assert_eq!(&json, "{\"level\":\"warning\",\"message\":\"Hello World!\",\"logger\":\"root\"}");
assert_eq!(
&json,
"{\"level\":\"warning\",\"message\":\"Hello World!\",\"logger\":\"root\"}"
);
}

0 comments on commit b6d0c9c

Please sign in to comment.