suppress dead_code warning on Literal command node
This commit is contained in:
1 parent
4bc1f7b0b2
commit
413f88d145
2 files changed
+2
No files matched your search
@@ -20,6 +20,7 @@ pub(crate) enum NodeType<'a> {
|
|||||||
ExecuteLeaf {
|
ExecuteLeaf {
|
||||||
run: &'a (dyn Fn(&mut CommandSender, &ConsumedArgs) -> Result<(), InvalidTreeError> + Sync),
|
run: &'a (dyn Fn(&mut CommandSender, &ConsumedArgs) -> Result<(), InvalidTreeError> + Sync),
|
||||||
},
|
},
|
||||||
|
#[allow(dead_code)] // todo: remove (so far no commands requiring this are implemented)
|
||||||
Literal {
|
Literal {
|
||||||
string: &'a str,
|
string: &'a str,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -115,6 +115,7 @@ impl <'a>NonLeafNodeBuilder<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Matches a sting literal.
|
/// Matches a sting literal.
|
||||||
|
#[allow(dead_code)] // todo: remove (so far no commands requiring this are implemented)
|
||||||
pub fn literal(string: &str) -> NonLeafNodeBuilder {
|
pub fn literal(string: &str) -> NonLeafNodeBuilder {
|
||||||
NonLeafNodeBuilder {
|
NonLeafNodeBuilder {
|
||||||
node_type: NodeType::Literal {
|
node_type: NodeType::Literal {
|
||||||
|
|||||||
Reference in new issue
Block a user