From 8a1e1b7bb93373e85432ce4211b6ede4eae79409 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 20 Apr 2024 04:03:03 +0000 Subject: clippy --- azalea-brigadier/src/context/command_context_builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-brigadier/src/context/command_context_builder.rs') diff --git a/azalea-brigadier/src/context/command_context_builder.rs b/azalea-brigadier/src/context/command_context_builder.rs index 75295825..95e1b5d8 100755 --- a/azalea-brigadier/src/context/command_context_builder.rs +++ b/azalea-brigadier/src/context/command_context_builder.rs @@ -63,7 +63,7 @@ impl<'a, S> CommandContextBuilder<'a, S> { } pub fn with_command(&mut self, command: &Command) -> &Self { - self.command = command.clone(); + self.command.clone_from(command); self } pub fn with_child(&mut self, child: Rc>) -> &Self { @@ -80,7 +80,7 @@ impl<'a, S> CommandContextBuilder<'a, S> { range, }); self.range = StringRange::encompassing(&self.range, &range); - self.modifier = node.read().modifier.clone(); + self.modifier.clone_from(&node.read().modifier); self.forks = node.read().forks; self } -- cgit v1.2.3