summary refs log tree commit diff stats
path: root/src/tree.rs
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2021-12-05 00:11:33 -0300
committerSoniEx2 <endermoneymod@gmail.com>2021-12-05 00:11:33 -0300
commit70137e6614843c42dd9ad32abf00e5fc7da7662f (patch)
treeb4fc40f6e6c3174c29958e33b94729e27b108c2f /src/tree.rs
parentb4bbe8a7733ce8f45cbd0d9b337ce3cb29f75e98 (diff)
Add more Send + Sync
Diffstat (limited to 'src/tree.rs')
-rw-r--r--src/tree.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tree.rs b/src/tree.rs
index daac8d3..71243be 100644
--- a/src/tree.rs
+++ b/src/tree.rs
@@ -3,7 +3,6 @@
 // Licensed under the MIT license.
 // Documentation and comments licensed under CC BY-SA 4.0.
 
-#![allow(dead_code, unused_imports)] // for now
 //! Command syntax tree.
 
 use ::std::borrow::Cow;
@@ -75,7 +74,7 @@ impl<T, S, E> CommandNode<T, S, E> {
     }
 
     /// Creates a new argument node.
-    pub fn argument<A: ArgumentType<S, E> + 'static>(
+    pub fn argument<A: ArgumentType<S, E> + 'static + Send + Sync>(
         name: Cow<'static, str>,
         command: Option<Command<T, S, E>>,
         argument: A,