diff options
Diffstat (limited to 'azalea-brigadier/src/context/command_context_builder.rs')
| -rw-r--r-- | azalea-brigadier/src/context/command_context_builder.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-brigadier/src/context/command_context_builder.rs b/azalea-brigadier/src/context/command_context_builder.rs index f8d4334d..a3819246 100644 --- a/azalea-brigadier/src/context/command_context_builder.rs +++ b/azalea-brigadier/src/context/command_context_builder.rs @@ -77,7 +77,7 @@ impl<'a, S> CommandContextBuilder<'a, S> { self } pub fn with_argument(&mut self, name: &str, argument: ParsedArgument) -> &Self { - self.arguments.insert(name.to_string(), argument); + self.arguments.insert(name.to_owned(), argument); self } pub fn with_node(&mut self, node: Arc<RwLock<CommandNode<S>>>, range: StringRange) -> &Self { @@ -102,7 +102,7 @@ impl<'a, S> CommandContextBuilder<'a, S> { range: self.range, forks: self.forks, modifier: self.modifier.clone(), - input: input.to_string(), + input: input.to_owned(), } } |
