Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
X-Lap
Commits
c7bce8af
Commit
c7bce8af
authored
Mar 23, 2021
by
Sven Liefgen
Browse files
Add NoKind
parent
5a3e2f07
Changes
2
Hide whitespace changes
Inline
Side-by-side
build.rs
View file @
c7bce8af
...
...
@@ -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
...
...
src/lib.rs
View file @
c7bce8af
...
...
@@ -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
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment