Use an empty enum for the custom tag in the test

There's no point in allowing to have values of it, it's only a marker
type.
This commit is contained in:
Sebastian Dröge 2019-01-23 16:11:52 +02:00
parent 9d79280929
commit ca791ae4fa

View file

@ -1014,7 +1014,7 @@ mod tests {
fn test_custom_tags() { fn test_custom_tags() {
::init().unwrap(); ::init().unwrap();
struct MyCustomTag; enum MyCustomTag {};
impl<'a> Tag<'a> for MyCustomTag { impl<'a> Tag<'a> for MyCustomTag {
type TagType = &'a str; type TagType = &'a str;