Skip to content

Commit

Permalink
refactor: use concat! to concatenate string literals for better perfo…
Browse files Browse the repository at this point in the history
…rmance
  • Loading branch information
Integral-Tech committed Jan 15, 2025
1 parent 440cdd3 commit 000ea9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subcommands/external.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ mod test {
}

let mut writer = Cursor::new(vec![]);
let needle = format!("{}{}", "Y40ii4RihK6", "lHiK4BDsGS").to_string();
let needle = concat!("Y40ii4RihK6", "lHiK4BDsGS");
// --minus-style has no effect, just for cmdline parsing
let runargs = [
"--minus-style",
Expand Down

0 comments on commit 000ea9a

Please sign in to comment.