From ca70e5e321a3c174c53d0650feed84db471ac30d Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 11 Dec 2025 23:21:42 -1030 Subject: enable str_to_string clippy lint --- 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 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>>, 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(), } } -- cgit v1.2.3