From 390c5886f029ec81f2a192225f8cce02b2f9c8f5 Mon Sep 17 00:00:00 2001 From: Ryan Jones-Ward Date: Wed, 5 Feb 2025 13:49:05 +0000 Subject: [PATCH] We don't need to use a reference here. --- redox-core/src/parsing/asm_parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redox-core/src/parsing/asm_parser.rs b/redox-core/src/parsing/asm_parser.rs index e07c4e7..f2eaabc 100644 --- a/redox-core/src/parsing/asm_parser.rs +++ b/redox-core/src/parsing/asm_parser.rs @@ -1099,11 +1099,11 @@ impl<'a> AsmParser<'a> { } if segment_end { - let string = &graphemes[start_pos..end_pos].join(""); + let string = graphemes[start_pos..end_pos].join(""); // If we have a non-empty string then we can add it to our processing list. if !string.is_empty() { - segments.push(string.to_string()); + segments.push(string); } // Skip over the current grapheme to the next one.