Skip to content

Commit

Permalink
We don't need to use a reference here.
Browse files Browse the repository at this point in the history
  • Loading branch information
sciguyryan committed Feb 5, 2025
1 parent 47fb6dc commit 390c588
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redox-core/src/parsing/asm_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 390c588

Please sign in to comment.