Skip to content

Commit

Permalink
updat format
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcAntoine-Arnaud committed May 24, 2018
1 parent ee6a4ac commit 1101b2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yaserde/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ fn default_visitor() {
}

macro_rules! test_type {
($visitor:tt, $message:expr) => ({
let t = Test{};
($visitor: tt, $message: expr) => {{
let t = Test {};
assert_eq!(t.$visitor(""), Err($message.to_string()));
})
}};
}

test_type!(visit_bool, "Unexpected bool \"\"");
Expand Down

0 comments on commit 1101b2e

Please sign in to comment.