Commit c7bce8af authored by Sven Liefgen's avatar Sven Liefgen
Browse files

Add NoKind

parent 5a3e2f07
......@@ -45,6 +45,7 @@ fn main() {
kind_enum.push_str(kind.as_str().unwrap().to_uppercase().as_str());
kind_enum.push_str(",\n");
}
kind_enum.push_str(" NoKind,\n");
kind_enum.push_str("}\n");
// Create timestamps
......
......@@ -209,12 +209,16 @@ macro_rules! map_kind {
( $src:expr, $($type:expr => $kind:expr),* ) => {
{
#[cfg(feature = "xlap")]
match $src {
$($type => $kind),*,
_ => unreachable!(),
{
match $src {
$($type => $kind),*,
_ => unreachable!(),
}
}
#[cfg(not(feature = "xlap"))]
$crate::Kind::NoKind
{
$crate::Kind::NoKind
}
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment