diff options
| author | mat <github@matdoes.dev> | 2022-04-17 20:46:43 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-04-17 20:46:43 -0500 |
| commit | d68233e0b1ff61d09ab2c4e22a42f3326054539b (patch) | |
| tree | d40d421eca3695fd594c1a0b1589af09c59e1f84 /azalea-brigadier/src/builder/required_argument_builder.rs | |
| parent | af4b0d0add23188ab00e89a216cd3db62074cf7e (diff) | |
| download | azalea-drasl-d68233e0b1ff61d09ab2c4e22a42f3326054539b.tar.xz | |
simplify the <S> generic so it's not an Rc
Diffstat (limited to 'azalea-brigadier/src/builder/required_argument_builder.rs')
| -rw-r--r-- | azalea-brigadier/src/builder/required_argument_builder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-brigadier/src/builder/required_argument_builder.rs b/azalea-brigadier/src/builder/required_argument_builder.rs index 0eb5d11a..cae0cddb 100644 --- a/azalea-brigadier/src/builder/required_argument_builder.rs +++ b/azalea-brigadier/src/builder/required_argument_builder.rs @@ -41,6 +41,6 @@ impl Debug for Argument { } /// Shortcut for creating a new argument builder node. -pub fn argument<S: Any + Clone>(name: &str, parser: impl Parser + 'static) -> ArgumentBuilder<S> { +pub fn argument<S>(name: &str, parser: impl Parser + 'static) -> ArgumentBuilder<S> { ArgumentBuilder::new(Argument::new(name, Rc::new(parser)).into()) } |
