updat format
This commit is contained in:
parent
ee6a4ac8cf
commit
1101b2e16f
@ -110,10 +110,10 @@ fn default_visitor() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
macro_rules! test_type {
|
macro_rules! test_type {
|
||||||
($visitor:tt, $message:expr) => ({
|
($visitor: tt, $message: expr) => {{
|
||||||
let t = Test {};
|
let t = Test {};
|
||||||
assert_eq!(t.$visitor(""), Err($message.to_string()));
|
assert_eq!(t.$visitor(""), Err($message.to_string()));
|
||||||
})
|
}};
|
||||||
}
|
}
|
||||||
|
|
||||||
test_type!(visit_bool, "Unexpected bool \"\"");
|
test_type!(visit_bool, "Unexpected bool \"\"");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user