aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/builder/required_argument_builder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-brigadier/src/builder/required_argument_builder.rs')
-rw-r--r--azalea-brigadier/src/builder/required_argument_builder.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/azalea-brigadier/src/builder/required_argument_builder.rs b/azalea-brigadier/src/builder/required_argument_builder.rs
index 9cd089de..0eb5d11a 100644
--- a/azalea-brigadier/src/builder/required_argument_builder.rs
+++ b/azalea-brigadier/src/builder/required_argument_builder.rs
@@ -16,7 +16,7 @@ impl Argument {
pub fn new(name: &str, parser: Rc<dyn Parser>) -> Self {
Self {
name: name.to_string(),
- parser: parser,
+ parser,
}
}
@@ -41,9 +41,6 @@ impl Debug for Argument {
}
/// Shortcut for creating a new argument builder node.
-pub fn argument<'a, S: Any + Clone>(
- name: &'a str,
- parser: impl Parser + 'static,
-) -> ArgumentBuilder<S> {
+pub fn argument<S: Any + Clone>(name: &str, parser: impl Parser + 'static) -> ArgumentBuilder<S> {
ArgumentBuilder::new(Argument::new(name, Rc::new(parser)).into())
}