diff options
| author | mat <git@matdoes.dev> | 2025-05-30 12:59:08 -1345 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-05-30 12:59:08 -1345 |
| commit | a64c6505049082175224802c5be51ac8f0cf4677 (patch) | |
| tree | 443877d470fed94810b4b7180b2584dd5ae3fc9d /azalea-brigadier/src/context/command_context.rs | |
| parent | cfdd8e690f230bc84fc126d5a8bfa13df0f6d781 (diff) | |
| download | azalea-drasl-a64c6505049082175224802c5be51ac8f0cf4677.tar.xz | |
make fixedbitset require generic const exprs again :3
Diffstat (limited to 'azalea-brigadier/src/context/command_context.rs')
| -rw-r--r-- | azalea-brigadier/src/context/command_context.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/azalea-brigadier/src/context/command_context.rs b/azalea-brigadier/src/context/command_context.rs index 224f2d63..d50c94ab 100644 --- a/azalea-brigadier/src/context/command_context.rs +++ b/azalea-brigadier/src/context/command_context.rs @@ -10,7 +10,7 @@ use crate::{ /// A built `CommandContextBuilder`. pub struct CommandContext<S> { - pub(super) source: Arc<S>, + pub source: Arc<S>, pub(super) input: String, pub(super) arguments: HashMap<String, ParsedArgument>, pub(super) command: Command<S>, @@ -93,10 +93,6 @@ impl<S> CommandContext<S> { &self.command } - pub fn source(&self) -> &Arc<S> { - &self.source - } - pub fn argument(&self, name: &str) -> Option<&dyn Any> { let argument = self.arguments.get(name); argument.map(|a| a.result.as_ref()) |
