aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-05-23 02:12:34 +0000
committermat <git@matdoes.dev>2024-05-23 02:12:34 +0000
commit4f6f104ddbf6895c78c3eaf3a33a51ceceac6ce4 (patch)
tree6d0e83e90f33fe9a0fe1b4f4f9ced26758b71ee0
parentf9c28ca5faa5ac9ba78f13e025675d2c56123361 (diff)
downloadazalea-drasl-4f6f104ddbf6895c78c3eaf3a33a51ceceac6ce4.tar.xz
resolve clippy warning
-rwxr-xr-xazalea-brigadier/src/command_dispatcher.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/azalea-brigadier/src/command_dispatcher.rs b/azalea-brigadier/src/command_dispatcher.rs
index 3b5987fc..2f4d6ebd 100755
--- a/azalea-brigadier/src/command_dispatcher.rs
+++ b/azalea-brigadier/src/command_dispatcher.rs
@@ -65,6 +65,7 @@ impl<S> CommandDispatcher<S> {
context_so_far: CommandContextBuilder<'a, S>,
) -> Result<ParseResults<'a, S>, CommandSyntaxException> {
let source = context_so_far.source.clone();
+ #[allow(clippy::mutable_key_type)] // this is fine because we don't mutate the key
let mut errors = HashMap::<Rc<CommandNode<S>>, CommandSyntaxException>::new();
let mut potentials: Vec<ParseResults<S>> = vec![];
let cursor = original_reader.cursor();