mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Remove unused branch in macro
Nightly rust starts warning about this
This commit is contained in:
parent
3b64765c3e
commit
1d18bd634b
1 changed files with 0 additions and 4 deletions
|
@ -45,8 +45,6 @@ pub trait SyntaxNodeVerify {
|
|||
/// Check that a node has the assumed children
|
||||
#[cfg(test)]
|
||||
macro_rules! verify_node {
|
||||
// nothing to verify
|
||||
($node:ident, _) => {};
|
||||
// Some combination of children
|
||||
($node:ident, [ $($t1:tt $($t2:ident)?),* ]) => {
|
||||
// Check that every children is there
|
||||
|
@ -97,8 +95,6 @@ macro_rules! verify_node {
|
|||
}
|
||||
|
||||
macro_rules! node_accessors {
|
||||
// nothing
|
||||
(_) => {};
|
||||
// Some combination of children
|
||||
([ $($t1:tt $($t2:ident)?),* ]) => {
|
||||
$(node_accessors!{@ $t1 $($t2)*} )*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue